Correct memory release function.
l_name is populated by strdup which requires using free rather
than delete.
Change-Id: I9d9bdcfaa3ef095502270f332b95a0ee5c0bbcfc
[ROCm/ROCR-Runtime commit: 9c20f0e649]
This commit is contained in:
@@ -207,7 +207,7 @@ static void RemoveCodeObjectInfoFromDebugMap(link_map* map) {
|
||||
map->l_next->l_prev = map->l_prev;
|
||||
}
|
||||
|
||||
delete map->l_name;
|
||||
free(map->l_name);
|
||||
memset(map, 0, sizeof(link_map));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user