]> granicus.if.org Git - php/commitdiff
Fixed a possible memory leak on open_basedir validation
authorIlia Alshanetsky <iliaa@php.net>
Wed, 14 Mar 2007 15:02:20 +0000 (15:02 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 14 Mar 2007 15:02:20 +0000 (15:02 +0000)
ext/zip/php_zip.c

index f99450e4256831604bbc61c5568949b3b8666fab..be071bed424a0da569d6560dfe942db36b85ef8a 100644 (file)
@@ -160,6 +160,7 @@ static int php_zip_extract_file(struct zip * za, char *dest, char *file, int fil
         * safemode status as its parent folder?
         */
        if (OPENBASEDIR_CHECKPATH(fullpath)) {
+               efree(fullpath);
                efree(file_dirname_fullpath);
                efree(file_basename);
                return 0;