Commit 4fae243
committed
ShadowMemory should increment/decrement device handle
ShadowMemory holds a reference to the appropriate device, but did not
retain/release it properly, resulting in use-after-frees in the asan
testing.1 parent 1f978c6 commit 4fae243
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments