Repository navigation
Commit ccbeca4
authored
Fix reference leak in to_builtins for array-like Structs (msgspec#1177)
Remove the extra reference increment for converted fields before
inserting them into the result list or tuple. This prevents leaked
references on successful conversion and when a later field fails to
convert.
Fixes msgspec#1175.
Co-authored-by: Siyet <[email protected]>1 parent 8be1966 commit ccbeca4
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20367 | 20367 | | |
20368 | 20368 | | |
20369 | 20369 | | |
20370 | | - | |
20371 | 20370 | | |
20372 | 20371 | | |
20373 | 20372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
478 | 499 | | |
479 | 500 | | |
480 | 501 | | |
| |||
0 commit comments