From: Greg Beaver Date: Sat, 23 Feb 2008 19:44:51 +0000 (+0000) Subject: fix unfreed value found in tempmanifest1.phpt X-Git-Tag: RELEASE_2_0_0a1~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6862d4a33476db084ef7f87f6d42a7b0bf4c678;p=php fix unfreed value found in tempmanifest1.phpt --- 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; }