]> granicus.if.org Git - php/commitdiff
temp is freed in zend_unicode_to_string() on failure
authorAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:40:53 +0000 (21:40 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 21 Dec 2006 21:40:53 +0000 (21:40 +0000)
ext/standard/datetime.c

index fd07b9eda318d73728fc7e2a5bc5559bd510d2ea..66382cc148151b3a0c28705e1e3b6a44fe7d6a56 100644 (file)
@@ -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;