From: Xinchen Hui Date: Tue, 4 Mar 2014 12:29:48 +0000 (+0800) Subject: Fixed memory leak temporary X-Git-Tag: POST_PHPNG_MERGE~412^2~421^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f853449ce8245c53ddf36c91c5903fefd49cb933;p=php Fixed memory leak temporary --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 79fa1b52ae..f4db9dc808 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1118,7 +1118,8 @@ PHPAPI PHP_FUNCTION(fgetss) retval_len = php_strip_tags(retval, actual_len, &stream->fgetss_state, allowed_tags, allowed_tags_len); //??? RETURN_STRINGL(retval, retval_len, 0); - RETURN_STRINGL(retval, retval_len); + RETVAL_STRINGL(retval, retval_len); + efree(retval); } /* }}} */