Skip to content

Commit f4c594b

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix resource leak in iptcembed() on error
2 parents a6e76ac + 8a1f671 commit f4c594b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ PHP NEWS
1919
- Standard:
2020
. Fixed bug GH-18145 (php8ts crashes in php_clear_stat_cache()).
2121
(Jakub Zelenka)
22+
. Fix resource leak in iptcembed() on error. (nielsdos)
2223

2324
- Tests:
2425
. Address deprecated PHP 8.4 session options to prevent test failures.

Diff for: ext/standard/iptc.c

+1
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)