From: Greg Beaver Date: Fri, 26 Sep 2008 04:41:40 +0000 (+0000) Subject: MFB: fix obvious memory leak X-Git-Tag: BEFORE_HEAD_NS_CHANGE~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59465a879dedcf463c88930876ef4ab5db2b5251;p=php MFB: fix obvious memory leak --- diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index 7b7abe6077..e2a9c342e6 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -645,6 +645,7 @@ static void phar_file_stat(const char *filename, php_stat_len filename_length, i /* fopen within phar, if :// is not in the url, then prepend phar:/// */ 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; }