From: Anatol Belski Date: Mon, 29 Aug 2016 16:56:25 +0000 (+0200) Subject: fix double free X-Git-Tag: php-7.0.11RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d9308693756342578c13339a078d79f6f37d7c0;p=php fix double free --- diff --git a/ext/intl/uchar/uchar.c b/ext/intl/uchar/uchar.c index 266c62821b..7abc2a3623 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); } /* }}} */