Commit 4f1cac0
committed
Fix GH-22200: stream api memory leaks.
Report the stream errors before popping the operation off the stack, so
a reentrant error handler that runs another stream operation no longer
reuses the in-flight operation pool slot and orphans its error entry.
While at it, free the docref in php_stream_error_entry_free(), matching the
legacy list destructor.1 parent 188ed37 commit 4f1cac0
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | 453 | | |
456 | 454 | | |
457 | 455 | | |
| |||
527 | 525 | | |
528 | 526 | | |
529 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| |||
0 commit comments