diff --git a/openmp/libomptarget/src/device.cpp b/openmp/libomptarget/src/device.cpp --- a/openmp/libomptarget/src/device.cpp +++ b/openmp/libomptarget/src/device.cpp @@ -134,7 +134,7 @@ if (Event) destroyEvent(Event); HDTTMap->erase(It); - return OFFLOAD_SUCCESS; + return notifyDataUnmapped(HstPtrBegin); } REPORT("Trying to disassociate a pointer which was not mapped via "