From 5ed63dd8a96cef188202b59fd549e03f31f25af5 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 14 Mar 2007 15:02:20 +0000 Subject: Fixed a possible memory leak on open_basedir validation --- ext/zip/php_zip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/zip/php_zip.c') diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index f99450e425..be071bed42 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -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; -- cgit v1.2.1