summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_block_alloc.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-02-04 17:33:46 +0000
committerAndrey Hristov <andrey@php.net>2008-02-04 17:33:46 +0000
commit2d5e8a1e558794e68c23216a41bf2396513ce77b (patch)
tree2a9e03bd8f0ec7708cabe599272d1dd67d118557 /ext/mysqlnd/mysqlnd_block_alloc.c
parenta547c556b64ea83456d826ed5290261e4641ccae (diff)
downloadphp-git-2d5e8a1e558794e68c23216a41bf2396513ce77b.tar.gz
Fix a leak, memory warning and failing test case.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_block_alloc.c')
-rw-r--r--ext/mysqlnd/mysqlnd_block_alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_block_alloc.c b/ext/mysqlnd/mysqlnd_block_alloc.c
index ed6e6f7dfd..0bc85b25cc 100644
--- a/ext/mysqlnd/mysqlnd_block_alloc.c
+++ b/ext/mysqlnd/mysqlnd_block_alloc.c
@@ -186,6 +186,7 @@ mysqlnd_mempool_destroy(MYSQLND_MEMORY_POOL * pool TSRMLS_DC)
/* mnd_free will reference LOCK_access and might crash, depending on the caller...*/
mysqlnd_mempool_free_contents(pool TSRMLS_CC);
mnd_free(pool->arena);
+ mnd_free(pool);
DBG_VOID_RETURN;
}
/* }}} */