unlock before destroy (handle leak from SFSIP-88)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9669 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-09-26 19:30:52 +00:00
parent e03d7f2721
commit d8f1f01486
1 changed files with 2 additions and 1 deletions

View File

@ -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;