From: Xinchen Hui Date: Wed, 26 Feb 2014 08:33:27 +0000 (+0800) Subject: Fixed memory leak X-Git-Tag: POST_PHPNG_MERGE~412^2~504^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95320f1f468f7576c3536f42d5c03e118e45be23;p=php Fixed memory leak --- diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 32f24c4df0..35664d9a89 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -1534,7 +1534,8 @@ PHP_FUNCTION(stream_resolve_include_path) if (resolved_path) { //??? RETURN_STRING(resolved_path, 0); - RETURN_STRING(resolved_path); + RETVAL_STRING(resolved_path); + efree(resolved_path); } RETURN_FALSE; }