cvs: php4 /ext/standard file.c
| From: | Derick Rethans | Date: | Sat, 18 Jan 2003 13:55:58 +0000 |
| Subject: | cvs: php4 /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17992@lists.php.net to get a copy of this message | ||
derick Sat Jan 18 08:55:58 2003 EDT
Modified files:
/php4/ext/standard file.c
Log:
- Fixed memleak in fscanf().
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.292 php4/ext/standard/file.c:1.293
--- php4/ext/standard/file.c:1.292 Sat Jan 11 18:05:19 2003
+++ php4/ext/standard/file.c Sat Jan 18 08:55:58 2003
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.292 2003/01/11 23:05:19 moriyoshi Exp $ */
+/* $Id: file.c,v 1.293 2003/01/18 13:55:58 derick Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1518,6 +1518,7 @@
buf = php_stream_get_line((php_stream *) what, NULL, 0, &len);
if (buf == NULL) {
+ efree(args);
RETURN_FALSE;
}