Commit 4e348bf
authored
[orc-rt] Fix memory leak in WrapperFunctionResult. (#156795)
Previously `Tmp` could have been left owning a heap-allocated buffer and
would not have freed it on destruction (since Tmp was a C
orc_rt_WrapperFunctionResult).
This patch removes Tmp and simply resets R before swapping it with
Other.R.1 parent a95edec commit 4e348bf
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments