Commit 56fee39
authored
avoid extra refcount increment in GetField (bytecodealliance#155)
When returning the payload of a non-`None` `Optional` (i.e. just the value we
were passed) in `GetField`, we were accidentally incrementing its refcount,
resulting in a leak.
Fixes bytecodealliance#152
Signed-off-by: Joel Dice <[email protected]>1 parent b9cbfff commit 56fee39
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
676 | 679 | | |
677 | 680 | | |
678 | 681 | | |
| |||
682 | 685 | | |
683 | 686 | | |
684 | 687 | | |
685 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
686 | 693 | | |
687 | 694 | | |
688 | 695 | | |
| |||
0 commit comments