summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-29 18:57:50 +0200
committerAnatol Belski <ab@php.net>2016-08-29 18:57:50 +0200
commit5c8aa478da029879950650cc89cd830fb0876ed4 (patch)
tree192d8cecf6d6039d7f4459980ed5c6875b850754
parent3196ea195bdf242ebbf3496bef06232a82895794 (diff)
parent1d9308693756342578c13339a078d79f6f37d7c0 (diff)
downloadphp-git-5c8aa478da029879950650cc89cd830fb0876ed4.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: fix double free
-rw-r--r--ext/intl/uchar/uchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/intl/uchar/uchar.c b/ext/intl/uchar/uchar.c
index a7e5c17340..1e0041f03c 100644
--- a/ext/intl/uchar/uchar.c
+++ b/ext/intl/uchar/uchar.c
@@ -566,8 +566,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);
}
/* }}} */