From 59465a879dedcf463c88930876ef4ab5db2b5251 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 26 Sep 2008 04:41:40 +0000 Subject: [PATCH] MFB: fix obvious memory leak --- ext/phar/func_interceptors.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1