cvs: php4 /ext/session mod_user.c
| From: | Sascha Schumann | Date: | Sun, 24 Dec 2000 16:26:38 +0000 |
| Subject: | cvs: php4 /ext/session mod_user.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3297@lists.php.net to get a copy of this message | ||
sas Sun Dec 24 08:26:38 2000 EDT
Modified files:
/php4/ext/session mod_user.c
Log:
Not freeing the zval using FREE_ZVAL caused a segfault in
shutdown_memory_manager.
Index: php4/ext/session/mod_user.c
diff -u php4/ext/session/mod_user.c:1.9 php4/ext/session/mod_user.c:1.10
--- php4/ext/session/mod_user.c:1.9 Wed Oct 11 12:47:15 2000
+++ php4/ext/session/mod_user.c Sun Dec 24 08:26:38 2000
@@ -59,13 +59,13 @@
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;