From: Greg Beaver Date: Sun, 11 May 2008 20:53:38 +0000 (+0000) Subject: fix memleak X-Git-Tag: RELEASE_2_0_0b1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d168ad5444cb73e13055e0a1b6d278146fb5b45;p=php fix memleak --- diff --git a/ext/phar/func_interceptors.c b/ext/phar/func_interceptors.c index 250ca0556b..40a32fe59a 100644 --- a/ext/phar/func_interceptors.c +++ b/ext/phar/func_interceptors.c @@ -633,6 +633,7 @@ notfound: actual_len = entry[0] == '/' ? (entry_len - 1) : entry_len; /* this file is not in the current directory, use the original path */ entry = estrndup(filename, filename_length); + entry_len = filename_length; PHAR_G(cwd) = "/"; PHAR_G(cwd_len) = 0; /* clean path without cwd */