diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-30 12:16:43 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-01-30 12:16:56 +0100 |
commit | 494615fcb8c1fb5984e0e7d666e51a2dfc6bee55 (patch) | |
tree | a5854e4fbbf029889342382310304abc6db3a017 /ext/date/php_date.c | |
parent | 6ccd67577696b9c8bf3d88b521320720771dfc09 (diff) | |
download | php-git-494615fcb8c1fb5984e0e7d666e51a2dfc6bee55.tar.gz |
Fix leak in DateTimeImmutable::modify()
Diffstat (limited to 'ext/date/php_date.c')
-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 785c1b222e..bec60aab6d 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3297,6 +3297,7 @@ PHP_METHOD(DateTimeImmutable, modify) date_clone_immutable(object, &new_object); if (!php_date_modify(&new_object, modify, modify_len)) { + zval_ptr_dtor(&new_object); RETURN_FALSE; } |