Skip to content

Commit ce04b3f

Browse files
committed
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5: Fix error buffer cleanup in phar_open_parsed_phar() (#25376)
2 parents 9e1746a + 81f9483 commit ce04b3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ext/phar/phar.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ static zend_result phar_open_parsed_phar(
555555
}
556556

557557
if (phar && error && !(options & REPORT_ERRORS)) {
558-
efree(error);
558+
efree(*error);
559+
*error = NULL;
559560
}
560561

561562
return FAILURE;

0 commit comments

Comments
 (0)