From f6862d4a33476db084ef7f87f6d42a7b0bf4c678 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 23 Feb 2008 19:44:51 +0000 Subject: [PATCH] fix unfreed value found in tempmanifest1.phpt --- ext/phar/phar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 481974da3f..1707259be5 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2573,6 +2573,9 @@ int phar_zend_open(const char *filename, zend_file_handle *handle TSRMLS_DC) /* /* this file is not in the phar, use the original path */ if (SUCCESS == phar_orig_zend_open(filename, handle TSRMLS_CC)) { if (SUCCESS == phar_mount_entry(*pphar, handle->opened_path ? handle->opened_path : (char *) filename, strlen(handle->opened_path ? handle->opened_path : filename), (char *) filename, strlen(filename) TSRMLS_CC)) { + if (handle->opened_path) { + efree(handle->opened_path); + } entry = (char *) filename; goto dopharthing; } -- 2.50.1