add patch to fix leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10044 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-10-16 15:47:45 +00:00
parent c7ca7cc5ea
commit 853ecf075b
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond,
(*cond)->event = CreateEvent(NULL, TRUE, FALSE, NULL);
(*cond)->signal_all = 0;
(*cond)->num_waiting = 0;
apr_pool_cleanup_register(pool, *cond, thread_cond_cleanup,
apr_pool_cleanup_null);
return APR_SUCCESS;
}