From: Derick Rethans Date: Sat, 18 Jan 2003 13:55:58 +0000 (+0000) Subject: - Fixed memleak in fscanf(). X-Git-Tag: PHP_5_0_dev_before_13561_fix~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39aa3a5d989a5a7b96d672b410279571c56edc25;p=php - Fixed memleak in fscanf(). --- diff --git a/ext/standard/file.c b/ext/standard/file.c index d6fc9d9543..0fc5156c48 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1518,6 +1518,7 @@ PHP_FUNCTION(fscanf) buf = php_stream_get_line((php_stream *) what, NULL, 0, &len); if (buf == NULL) { + efree(args); RETURN_FALSE; }