From: Antony Dovgal Date: Thu, 21 Dec 2006 21:40:53 +0000 (+0000) Subject: temp is freed in zend_unicode_to_string() on failure X-Git-Tag: RELEASE_1_0_0RC1~569 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f79b1f89d55251386998fa2605a59537edb35e2;p=php temp is freed in zend_unicode_to_string() on failure --- diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index fd07b9eda3..66382cc148 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -113,7 +113,6 @@ PHP_FUNCTION(strptime) ts_length = temp_len; if (zend_unicode_to_string(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &temp, &temp_len, format.u, format_length TSRMLS_CC) == FAILURE) { - efree(ts.s); RETURN_FALSE; } format.s = temp;