pidgin: f7296972: Fix another leak

darkrain42 at pidgin.im darkrain42 at pidgin.im
Thu May 19 00:47:31 EDT 2011


----------------------------------------------------------------------
Revision: f7296972ae71f4d7899c6252c103233c89fa7792
Parent:   1174563c662f400df61d33665fbceb1f91c04339
Author:   darkrain42 at pidgin.im
Date:     05/19/11 00:18:26
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/f7296972ae71f4d7899c6252c103233c89fa7792

Changelog: 

Fix another leak

==13267== 624 (144 direct, 480 indirect) bytes in 6 blocks are definitely lost in loss record 14,700 of 15,489
==13267==    at 0x4C2779D: malloc (vg_replace_malloc.c:236)
==13267==    by 0x9014392: g_malloc (gmem.c:164)
==13267==    by 0x902AFE6: g_slice_alloc (gslice.c:842)
==13267==    by 0x90084BD: g_list_prepend (glist.c:309)
==13267==    by 0x932797F: purple_log_get_log_sets (log.c:1087)
==13267==    by 0x4B3929: add_completion_list (gtkutils.c:2093)

Changes against parent 1174563c662f400df61d33665fbceb1f91c04339

  patched  libpurple/log.c

-------------- next part --------------
============================================================
--- libpurple/log.c	d44c76dbd3a39f8d4b783ef535eb06c60f0368de
+++ libpurple/log.c	2965380df49c20eaa4b7f2187a1737ed20087c0a
@@ -1160,6 +1160,7 @@ static void log_get_log_sets_common(GHas
 		g_dir_close(protocol_dir);
 	}
 	g_free(log_path);
+	g_list_free(accounts);
 	g_dir_close(log_dir);
 }
 


More information about the Commits mailing list