[Pidgin] #3245: Resource descriptor and memory leak in dnssrv.c and javver.c in libpurple

Pidgin trac at pidgin.im
Tue Sep 25 13:21:21 EDT 2007


#3245: Resource descriptor and memory leak in  dnssrv.c and javver.c in libpurple
------------------------+---------------------------------------------------
  Reporter:  emilal     |       Owner:        
      Type:  defect     |      Status:  closed
  Priority:  minor      |   Milestone:  2.2.1 
 Component:  libpurple  |     Version:  2.2.0 
Resolution:  fixed      |    Keywords:        
   Pending:  0          |  
------------------------+---------------------------------------------------
Comment (by datallah):

 The current behavior in jabber.c is correct, `srv_resolved_cb` is called
 from `dnssrv.c:218`  and then, after the `waitpid()` call,
 `purple_srv_cancel()` is called, cleaning up the query_data.  The callback
 function shouldn't clean up the query data - the only reason that the
 srv_query_data reference is kept in jabber.c is so that we can cancel the
 query before it is complete.

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


More information about the Tracker mailing list