[Freeswitch-svn] [commit] r9669 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su

Freeswitch SVN mikej at freeswitch.org
Fri Sep 26 15:30:53 EDT 2008


Author: mikej
Date: Fri Sep 26 15:30:52 2008
New Revision: 9669

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c

Log:
unlock before destroy (handle leak from SFSIP-88)

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c	Fri Sep 26 15:30:52 2008
@@ -1019,8 +1019,9 @@
 
     home->suh_blocks = NULL;
 
-    if (home->suh_lock)
+	if (home->suh_lock) {
       _su_home_destroy_mutexes(home->suh_lock);
+	  UNLOCK(home);
   }
 
   home->suh_lock = NULL;



More information about the Freeswitch-svn mailing list