We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b87850 + 9216b8b commit 7d3c726Copy full SHA for 7d3c726
NEWS
@@ -19,6 +19,7 @@ PHP NEWS
19
20
- Phar:
21
. Fix memory leak of argument in webPhar. (nielsdos)
22
+ . Fix memory leak when setAlias() fails. (nielsdos)
23
24
- Random:
25
. Fix Randomizer::__serialize() w.r.t. INDIRECTs. (nielsdos)
ext/phar/phar_object.c
@@ -2778,6 +2778,7 @@ PHP_METHOD(Phar, setAlias)
2778
phar_flush(phar_obj->archive, &error);
2779
2780
if (error) {
2781
+ pefree(phar_obj->archive->alias, phar_obj->archive->is_persistent);
2782
phar_obj->archive->alias = oldalias;
2783
phar_obj->archive->alias_len = oldalias_len;
2784
phar_obj->archive->is_temporary_alias = old_temp;
0 commit comments