Commit bf3cb27
committed
[Hipcc] Mark ~HipBinBase as virutal
For hipBinNVPtr_ and hipBinAMDPtr_ members: the destructor of the base
class was not marked as virtual, but the destructor of the derived
classes are. When we delete the object we do it through a
pointer to the base class. So the base class destructor is called but
not the one of the derived classes. This results in strange memory
behaviour detected by ASAN.
Solves SWDEV-5164181 parent 528a697 commit bf3cb27
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments