From ca67d27fb22426ddd2075322a60e1082d67d58c6 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Thu, 26 Dec 2002 19:56:44 +0000 Subject: [PATCH] remove memleak --- ext/standard/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/string.c b/ext/standard/string.c index 261e76cc7d..f450e2a720 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1372,6 +1372,8 @@ PHP_FUNCTION(stristr) RETVAL_FALSE; } + zval_ptr_dtor(haystack); + zval_ptr_dtor(needle); efree(haystack_orig); } /* }}} */ -- 2.50.1