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:
Sean Keely
2020-08-26 18:22:59 -05:00
parent ecf5e6ca8f
commit 700dca7dd4
@@ -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));
}