diff --git a/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp b/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp index 6ca46154b2..0d6ce72ebf 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp @@ -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)); }