Commit 04f64a6
Edmond
Fix memory leak in zend_fcall_t cleanup in zend_fibers.c
Added proper cleanup of fcall parameters and named_params in two locations:
- coroutine_entry_point: free params array and decrement named_params refcount
- zend_fiber_object_destroy: same cleanup when fcall ownership wasn't taken
This matches the correct cleanup pattern used in ext/async/coroutine.c
and prevents memory leaks when fiber is destroyed.1 parent f4d5d11 commit 04f64a6
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1123 | 1135 | | |
1124 | 1136 | | |
1125 | 1137 | | |
| |||
1279 | 1291 | | |
1280 | 1292 | | |
1281 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1282 | 1307 | | |
1283 | 1308 | | |
1284 | 1309 | | |
| |||
0 commit comments