From d8f1f0148657d20d7aef392e826ba7fc8d5eed6b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 26 Sep 2008 19:30:52 +0000 Subject: [PATCH] unlock before destroy (handle leak from SFSIP-88) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9669 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c b/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c index b75f4f931d..8ef09c8593 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c @@ -1019,8 +1019,9 @@ void _su_home_deinit(su_home_t *home) 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;