Commit f063fea
Wu Yingcong
[DeviceASAN] Fix a UR_L0_LEAKS_DEBUG leak report (#18612)
Some resource destruction is done in the destructor, but if we don't
manually clear the map, then the destructor is called after the adapter
release, which leads to the leak report and maybe some UB(trying to use
adapter after it is released).1 parent c20712f commit f063fea
1 file changed
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments