From 39aa3a5d989a5a7b96d672b410279571c56edc25 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sat, 18 Jan 2003 13:55:58 +0000 Subject: [PATCH] - Fixed memleak in fscanf(). --- ext/standard/file.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1