summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-08-29 18:56:25 +0200
committerAnatol Belski <ab@php.net>2016-08-29 18:56:25 +0200
commit1d9308693756342578c13339a078d79f6f37d7c0 (patch)
tree0d9a29cefdc545a4448c286934aa68c07b14bd56
parentca4eeedd3619c676a9bb687be98983dbc229d69f (diff)
downloadphp-git-1d9308693756342578c13339a078d79f6f37d7c0.tar.gz
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 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);
}
/* }}} */