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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user