com php-src: Fixed #68826 (Resource leak): ext/zip/zip_stream .c

From: Date: Sun, 18 Jan 2015 03:56:02 +0000
Subject: com php-src: Fixed #68826 (Resource leak): ext/zip/zip_stream .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84152@lists.php.net to get a copy of this message
Commit: b21d9123a50bfeec1a5b4e0bbd50eb277c24b02f Author: Xinchen Hui <laruence@php.net> Sat, 17 Jan 2015 22:56:02 -0500 Parents: 4b3ae843fc378ad7ce27492cc337a30485d8ec75 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b21d9123a50bfeec1a5b4e0bbd50eb277c24b02f Log: Fixed #68826 (Resource leak) Bugs: https://bugs.php.net/68826 Changed paths: M ext/zip/zip_stream..c Diff: diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c index 67179ec..d56213d 100644 --- a/ext/zip/zip_stream.c +++ b/ext/zip/zip_stream.c @@ -160,6 +160,7 @@ static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ if (za) { memset(ssb, 0, sizeof(php_stream_statbuf)); if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) { + zip_close(za); zend_string_release(file_basename); return -1; }

« previous php.cvs (#84152) next »