summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-03-14 15:02:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-03-14 15:02:20 +0000
commit5ed63dd8a96cef188202b59fd549e03f31f25af5 (patch)
treeb6cd91b8e03b478043261ede8bef7ff92ca371f9
parentfc3a62ed48633567ccf7ccad4cd4bf01de64ccf2 (diff)
downloadphp-git-5ed63dd8a96cef188202b59fd549e03f31f25af5.tar.gz
Fixed a possible memory leak on open_basedir validation
-rw-r--r--ext/zip/php_zip.c1
1 files changed, 1 insertions, 0 deletions
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;