# HG changeset patch # User Nathan Walp # Date 1043733398 0 # Node ID 474a0a88dd5edfa4f115153522c451603e6d49ec # Parent d9e4eacf6b462251f709fe5d718c7ed9539df45e [gaim-migrate @ 4716] niqueco noticed that I don't clean up after myself. committer: Tailor Script diff -r d9e4eacf6b46 -r 474a0a88dd5e src/list.c --- a/src/list.c Tue Jan 28 05:39:29 2003 +0000 +++ b/src/list.c Tue Jan 28 05:56:38 2003 +0000 @@ -933,7 +933,7 @@ }; static gboolean gaim_blist_read(const char *filename) { - gchar *contents; + gchar *contents = NULL; gsize length; GMarkupParseContext *context; GError *error = NULL; @@ -947,16 +947,20 @@ if(!g_markup_parse_context_parse(context, contents, length, NULL)) { g_markup_parse_context_free(context); + g_free(contents); return FALSE; } if(!g_markup_parse_context_end_parse(context, NULL)) { debug_printf("error parsing blist\n"); g_markup_parse_context_free(context); + g_free(contents); return FALSE; } g_markup_parse_context_free(context); + g_free(contents); + if(blist_parser_error_occurred) return FALSE;