Skip to content

Commit f4954df

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix resource leak in iptcembed() on error
2 parents 5a19e25 + f4c594b commit f4954df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/iptc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ PHP_FUNCTION(iptcembed)
204204

205205
if (spool < 2) {
206206
if (zend_fstat(fileno(fp), &sb) != 0) {
207+
fclose(fp);
207208
RETURN_FALSE;
208209
}
209210

0 commit comments

Comments
 (0)