]> granicus.if.org Git - php/commitdiff
Fixed memory leak
authorXinchen Hui <laruence@gmail.com>
Wed, 26 Feb 2014 08:33:27 +0000 (16:33 +0800)
committerXinchen Hui <laruence@gmail.com>
Wed, 26 Feb 2014 08:33:27 +0000 (16:33 +0800)
ext/standard/streamsfuncs.c

index 32f24c4df0bf66fc74bff4806b315e537def3a72..35664d9a89ccbdf8966400f4d6a067df87f0b6bd 100644 (file)
@@ -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;
 }