diff options
author | Pierre Joye <pajoye@php.net> | 2007-03-14 16:34:56 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2007-03-14 16:34:56 +0000 |
commit | 20a7f2b3f4df18584ad9bf6ac2efe67301981aef (patch) | |
tree | 9f844b325cbe0dc5e1f66d4234595937ef40a4ee | |
parent | 4a13ef4b17c8a6be4cdfbcef36ebb5cf137a222d (diff) | |
download | php-git-20a7f2b3f4df18584ad9bf6ac2efe67301981aef.tar.gz |
- MFB: Fixed a possible memory leak on open_basedir validation (Ilia)
-rw-r--r-- | ext/zip/php_zip.c | 3 |
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; |