]> granicus.if.org Git - php/commitdiff
remove memleak
authorSterling Hughes <sterling@php.net>
Thu, 26 Dec 2002 19:56:44 +0000 (19:56 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 26 Dec 2002 19:56:44 +0000 (19:56 +0000)
ext/standard/string.c

index 261e76cc7d52867d1dffa3517107b7d3602320bf..f450e2a720b1318caa6c58042af6d99dd226fce3 100644 (file)
@@ -1372,6 +1372,8 @@ PHP_FUNCTION(stristr)
                RETVAL_FALSE;
        }
 
+       zval_ptr_dtor(haystack);
+       zval_ptr_dtor(needle);
        efree(haystack_orig);
 }
 /* }}} */