mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix resource leak in iptcembed() on error
Closes GH-18225.
This commit is contained in:
parent
5e68671f88
commit
8a1f6711bf
2 changed files with 2 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -16,6 +16,7 @@ PHP NEWS
|
|||
. Fixed bug GH-18209 (Use-after-free in extract() with EXTR_REFS). (ilutov)
|
||||
. Fixed bug GH-18212 (fseek with SEEK_CUR whence value and negative offset
|
||||
leads to negative stream position). (David Carlier)
|
||||
. Fix resource leak in iptcembed() on error. (nielsdos)
|
||||
|
||||
10 Apr 2025, PHP 8.3.20
|
||||
|
||||
|
|
|
@ -204,6 +204,7 @@ PHP_FUNCTION(iptcembed)
|
|||
|
||||
if (spool < 2) {
|
||||
if (zend_fstat(fileno(fp), &sb) != 0) {
|
||||
fclose(fp);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue