cvs: php-src /ext/standard file.c
| From: | Ilia Alshanetsky | Date: | Fri, 14 May 2004 16:12:03 +0000 |
| Subject: | cvs: php-src /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27342@lists.php.net to get a copy of this message | ||
iliaa Fri May 14 12:12:03 2004 EDT
Modified files:
/php-src/ext/standard file.c
Log:
Fixed possible memory leak inside popen().
http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.380&r2=1.381&ty=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.380 php-src/ext/standard/file.c:1.381
--- php-src/ext/standard/file.c:1.380 Wed Feb 25 15:16:26 2004
+++ php-src/ext/standard/file.c Fri May 14 12:12:03 2004
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.380 2004/02/25 20:16:26 abies Exp $ */
+/* $Id: file.c,v 1.381 2004/05/14 16:12:03 iliaa Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -838,6 +838,7 @@
if (!fp) {
php_error_docref2(NULL TSRMLS_CC, buf, p, E_WARNING, "%s", strerror(errno));
+ efree(p);
RETURN_FALSE;
}
} else {