[Pidgin] #7761: Fixes for libpurple to avoid segfaults

Pidgin trac at pidgin.im
Mon Dec 15 16:53:45 EST 2008


#7761: Fixes for libpurple to avoid segfaults
--------------------+-------------------------------------------------------
 Reporter:  vadiml  |        Owner:  datallah 
     Type:  patch   |       Status:  new      
Milestone:          |    Component:  libpurple
  Version:  2.5.2   |   Resolution:           
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by cavedon):

 About the nullptr.patch:
 I realized that this patch has a memory leak when doing
 {{{
 prefs.first_child = 0
 }}}

 I am attaching an improved version of the patch which fixes 3 issues:
  * destroy prefs_hash in order to avoid a memory leak when a new one is
 allocated in purple_prefs_init()
  * call purple_prefs_destroy(), so prefs is emptied in consistency with
 prefs_hash without memory leak
  * patch remove_pref() so that purple_prefs_destroy() actually works

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


More information about the Tracker mailing list