]> granicus.if.org Git - php/commitdiff
Fix memleaks
authorMarcus Boerger <helly@php.net>
Mon, 19 May 2003 18:46:59 +0000 (18:46 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 19 May 2003 18:46:59 +0000 (18:46 +0000)
main/streams/plain_wrapper.c

index 6b0f13516cd675a8aab3e6149707bb2499c586da..98e17c72f361bab02683a55fb11d381f9fc9958d 100644 (file)
@@ -921,7 +921,7 @@ static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int op
        ZVAL_STRINGL(&funcname, "clearstatcache", sizeof("clearstatcache")-1, 0);
        call_user_function_ex(CG(function_table), NULL, &funcname, &retval, 0, NULL, 0, NULL TSRMLS_CC);
        if (retval) {
-               zval_dtor(retval);
+               zval_ptr_dtor(&retval);
        }
        return 1;
 }