com php-src: Fixed memleak: ext/bz2/bz2.c

From: Date: Wed, 04 Mar 2015 04:08:54 +0000
Subject: com php-src: Fixed memleak: ext/bz2/bz2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85193@lists.php.net to get a copy of this message
Commit: a6ba7966de04747fc25228e7954146a485c6e402 Author: Xinchen Hui <laruence@php.net> Wed, 4 Mar 2015 12:08:54 +0800 Parents: 4ebfc02274c3de9c32c649aa965713d9f1c04945 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a6ba7966de04747fc25228e7954146a485c6e402 Log: Fixed memleak Changed paths: M ext/bz2/bz2.c Diff: diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c index 969c5e1..c463a68 100644 --- a/ext/bz2/bz2.c +++ b/ext/bz2/bz2.c @@ -269,6 +269,10 @@ PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, *opened_path = zend_string_init(path_copy, strlen(path_copy), 0); } +#ifdef VIRTUAL_DIR + efree(path_copy); +#endif + if (bz_file == NULL) { /* that didn't work, so try and get something from the network/wrapper */ stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);

« previous php.cvs (#85193) next »