From 7574cd4360e5157a2a304b851113825c893d843e Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 24 Dec 2000 16:26:38 +0000 Subject: [PATCH] Not freeing the zval using FREE_ZVAL caused a segfault in shutdown_memory_manager. --- ext/session/mod_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index efb52070d2..791062a27c 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -59,13 +59,13 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv) if (call_user_function(EG(function_table), NULL, func, retval, argc, argv) == FAILURE) { zval_dtor(retval); - efree(retval); + FREE_ZVAL(retval); retval = NULL; } for (i = 0; i < argc; i++) { zval_dtor(argv[i]); - efree(argv[i]); + FREE_ZVAL(argv[i]); } return retval; -- 2.40.0