com php-src: fix double free: ext/intl/uchar/uchar.c

From: Date: Mon, 29 Aug 2016 16:56:25 +0000
Subject: com php-src: fix double free: ext/intl/uchar/uchar.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94121@lists.php.net to get a copy of this message
Commit: 1d9308693756342578c13339a078d79f6f37d7c0 Author: Anatol Belski <ab@php.net> Mon, 29 Aug 2016 18:56:25 +0200 Parents: ca4eeedd3619c676a9bb687be98983dbc229d69f Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d9308693756342578c13339a078d79f6f37d7c0 Log: fix double free Changed paths: M ext/intl/uchar/uchar.c Diff: diff --git a/ext/intl/uchar/uchar.c b/ext/intl/uchar/uchar.c index 266c628..7abc2a3 100644 --- a/ext/intl/uchar/uchar.c +++ b/ext/intl/uchar/uchar.c @@ -557,8 +557,8 @@ IC_METHOD(getFC_NFKC_Closure) { error = U_ZERO_ERROR; u8str = intl_convert_utf16_to_utf8(closure, closure_len, &error); - efree(closure); INTL_CHECK_STATUS(error, "Failed converting output to UTF8"); + efree(closure); RETVAL_NEW_STR(u8str); } /* }}} */

« previous php.cvs (#94121) next »