cellog Fri Sep 26 04:41:41 2008 UTC
Modified files:
/php-src/ext/phar func_interceptors.c
Log:
MFB: fix obvious memory leak
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/func_interceptors.c?r1=1.27&r2=1.28&diff_format=u
Index: php-src/ext/phar/func_interceptors.c
diff -u php-src/ext/phar/func_interceptors.c:1.27
php-src/ext/phar/func_interceptors.c:1.28
--- php-src/ext/phar/func_interceptors.c:1.27 Sat Sep 13 22:31:18 2008
+++ php-src/ext/phar/func_interceptors.c Fri Sep 26 04:41:40 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: func_interceptors.c,v 1.27 2008/09/13 22:31:18 cellog Exp $ */
+/* $Id: func_interceptors.c,v 1.28 2008/09/26 04:41:40 cellog Exp $ */
#include "phar_internal.h"
@@ -645,6 +645,7 @@
/* fopen within phar, if :// is not in the url, then
prepend phar://<archive>/ */
entry_len = (int) filename_length;
if (FAILURE == phar_get_archive(&phar, arch, arch_len,
NULL, 0, NULL TSRMLS_CC)) {
+ efree(entry);
efree(arch);
goto skip_phar;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php