summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2007-03-14 16:34:56 +0000
committerPierre Joye <pajoye@php.net>2007-03-14 16:34:56 +0000
commit20a7f2b3f4df18584ad9bf6ac2efe67301981aef (patch)
tree9f844b325cbe0dc5e1f66d4234595937ef40a4ee
parent4a13ef4b17c8a6be4cdfbcef36ebb5cf137a222d (diff)
downloadphp-git-20a7f2b3f4df18584ad9bf6ac2efe67301981aef.tar.gz
- MFB: Fixed a possible memory leak on open_basedir validation (Ilia)
-rw-r--r--ext/zip/php_zip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 83af1280d3..f4f01633f3 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -155,10 +155,11 @@ static int php_zip_extract_file(struct zip * za, char *dest, char *file, int fil
}
/* check again the full path, not sure if it
- * is required, does a file can have a different
+ * is required, can a file have a different
* safemode status as its parent folder?
*/
if (OPENBASEDIR_CHECKPATH(fullpath)) {
+ efree(fullpath);
efree(file_dirname_fullpath);
efree(file_basename);
return 0;