1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00

Another leak bites the dust?

This commit is contained in:
Zeev Suraski
2001-09-27 00:21:21 +00:00
parent ba670f561e
commit 7e42c73a50

View File

@@ -1360,11 +1360,11 @@ PHP_FUNCTION(stristr)
if (found) {
found_offset = found - Z_STRVAL_PP(haystack);
RETURN_STRINGL(haystack_orig + found_offset,
RETVAL_STRINGL(haystack_orig + found_offset,
Z_STRLEN_PP(haystack) - found_offset,
1);
} else {
RETURN_FALSE;
RETVAL_FALSE;
}
efree(haystack_orig);