com php-src: Fixed memory leak temporary: ext/standard/file.c

From: Date: Tue, 04 Mar 2014 12:29:48 +0000
Subject: com php-src: Fixed memory leak temporary: ext/standard/file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77803@lists.php.net to get a copy of this message
Commit: f853449ce8245c53ddf36c91c5903fefd49cb933 Author: Xinchen Hui <laruence@gmail.com> Tue, 4 Mar 2014 20:29:48 +0800 Parents: c1ec21e265420d1664a9e417e66fbf34ff49a73d Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f853449ce8245c53ddf36c91c5903fefd49cb933 Log: Fixed memory leak temporary Changed paths: M ext/standard/file.c Diff: diff --git a/ext/standard/file.c b/ext/standard/file.c index 79fa1b5..f4db9dc 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); } /* }}} */

« previous php.cvs (#77803) next »