diff options
author | Nikita Popov <nikic@php.net> | 2016-07-14 17:43:29 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-07-14 18:39:16 +0200 |
commit | 411eee7b5ae8b529b10184f98e3f9b02d93ba864 (patch) | |
tree | 507f3814647087d8d2b041a5820b78f84846447e | |
parent | 00047fcf843fa5b99c1615b0d65502a43fada924 (diff) | |
download | php-git-411eee7b5ae8b529b10184f98e3f9b02d93ba864.tar.gz |
Fix leak when creating timezone with null bytes
-rw-r--r-- | ext/date/php_date.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |