cellog Fri Sep 26 04:41:22 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/phar func_interceptors.c Log: fix obvious memory leak http://cvs.php.net/viewvc.cgi/php-src/ext/phar/func_interceptors.c?r1=1.20.2.18&r2=1.20.2.19&diff_format=u Index: php-src/ext/phar/func_interceptors.c diff -u php-src/ext/phar/func_interceptors.c:1.20.2.18 php-src/ext/phar/func_interceptors.c:1.20.2.19 --- php-src/ext/phar/func_interceptors.c:1.20.2.18 Sat Sep 13 22:30:55 2008 +++ php-src/ext/phar/func_interceptors.c Fri Sep 26 04:41:22 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: func_interceptors.c,v 1.20.2.18 2008/09/13 22:30:55 cellog Exp $ */ +/* $Id: func_interceptors.c,v 1.20.2.19 2008/09/26 04:41:22 cellog Exp $ */ #include "phar_internal.h" @@ -646,6 +646,7 @@ entry_len = (int) filename_length; if (FAILURE == phar_get_archive(&phar, arch, arch_len, NULL, 0, NULL TSRMLS_CC)) { efree(arch); + efree(entry); goto skip_phar; } splitted:
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php