[Pidgin] #8786: small memory leaks (was: small memory leaks in silc/qq)

Pidgin trac at pidgin.im
Thu Mar 26 00:41:00 EDT 2009


#8786: small memory leaks
------------------------------------+---------------------------------------
 Reporter:  darkrain42              |           Owner:           
     Type:  patch                   |          Status:  new      
Milestone:  Patches Needing Review  |       Component:  libpurple
  Version:  2.5.5                   |      Resolution:           
 Keywords:                          |   Launchpad_bug:           
------------------------------------+---------------------------------------

Comment(by darkrain42):

 Added a second patch which fixes a leak of the status message in oscar and
 a short string in pidgin.

 {{{
 ==8119== 10 bytes in 1 blocks are definitely lost in loss record 785 of
 9,700
 ==8119==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)
 ==8119==    by 0x9DE4472: g_malloc (gmem.c:131)
 ==8119==    by 0x9DFC0AD: g_strdup (gstrfuncs.c:92)
 ==8119==    by 0x8E7A25E: purple_markup_strip_html (util.c:1836)
 ==8119==    by 0x112ADC62: oscar_set_info_and_status (oscar.c:4836)
 ==8119==    by 0x112AFE5B: purple_parse_locaterights (oscar.c:3827)
 ==8119==    by 0x1129FE4A: snachandler (family_locate.c:1035)
 ==8119==    by 0x112A5E58: flap_connection_recv (flap_connection.c:755)
 ==8119==    by 0x46C83D: pidgin_io_invoke (gtkeventloop.c:78)
 ==8119==    by 0x9DDBD5A: g_main_context_dispatch (gmain.c:2144)
 ==8119==    by 0x9DDF52C: g_main_context_iterate (gmain.c:2778)
 ==8119==    by 0x9DDFA5C: g_main_loop_run (gmain.c:2986)

 ==8119== 21 bytes in 1 blocks are definitely lost in loss record 2,821 of
 9,700
 ==8119==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)
 ==8119==    by 0x9DE4472: g_malloc (gmem.c:131)
 ==8119==    by 0x9DFC0AD: g_strdup (gstrfuncs.c:92)
 ==8119==    by 0x9E108D8: g_find_program_in_path (gutils.c:560)
 ==8119==    by 0x4AE2D9: pidgin_utils_init (gtkutils.c:3582)
 ==8119==    by 0x8E43E11: purple_core_init (core.c:186)
 ==8119==    by 0x483F0E: main (gtkmain.c:772)
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8786#comment:1>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list