From: Sascha Schumann Date: Sun, 24 Dec 2000 16:26:38 +0000 (+0000) Subject: Not freeing the zval using FREE_ZVAL caused a segfault in X-Git-Tag: php-4.0.5RC1~794 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7574cd4360e5157a2a304b851113825c893d843e;p=php Not freeing the zval using FREE_ZVAL caused a segfault in shutdown_memory_manager. --- 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;