]> granicus.if.org Git - php/commitdiff
fix memleak
authorGreg Beaver <cellog@php.net>
Sun, 11 May 2008 20:53:38 +0000 (20:53 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 11 May 2008 20:53:38 +0000 (20:53 +0000)
ext/phar/func_interceptors.c

index 250ca0556b0e63b60f0e76ab55db931e98916bc4..40a32fe59ad51670c6e7830874f4a8b2d6ee765a 100644 (file)
@@ -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 */