From: Nikita Popov Date: Thu, 14 Jul 2016 15:43:29 +0000 (+0200) Subject: Fix leak when creating timezone with null bytes X-Git-Tag: php-7.1.0beta1~61^2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=411eee7b5ae8b529b10184f98e3f9b02d93ba864;p=php Fix leak when creating timezone with null bytes --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index f494d6cfaf..dbcd9d0404 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3611,6 +3611,7 @@ static int timezone_initialize(php_timezone_obj *tzobj, /*const*/ char *tz, size if (strlen(tz) != tz_len) { php_error_docref(NULL, E_WARNING, "Timezone must not contain null bytes"); + efree(dummy_t); return FAILURE; }