diff --git a/openmp/device/src/Allocator.cpp b/openmp/device/src/Allocator.cpp index b6e8f06bc164f..24f989197a707 100644 --- a/openmp/device/src/Allocator.cpp +++ b/openmp/device/src/Allocator.cpp @@ -98,7 +98,7 @@ void allocator::free(void *Ptr) { #elif defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC) __ockl_dm_dealloc(reinterpret_cast(Ptr)); #else - ::free(Size); + ::free(Ptr); #endif }