fix memleak

This commit is contained in:
Greg Beaver 2008-05-11 20:53:38 +00:00
parent 376deb39d6
commit 5d168ad544

View 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 */