]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch to fix leak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 16 Oct 2008 15:47:45 +0000 (15:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 16 Oct 2008 15:47:45 +0000 (15:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10044 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/apr/locks/win32/thread_cond.c

index ac71a41939c6681c5cb0838f41c4ed6e3d6f2925..30d2c4a2bcb2b35d5bdb0b02e2722621d5d287ba 100644 (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;
 }