Skip to content

Commit 0f2e703

Browse files
committed
fix memory leak
1 parent 1a27dff commit 0f2e703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ USMLaunchInfo::~USMLaunchInfo() {
861861
[[maybe_unused]] ur_result_t Result;
862862
if (Data) {
863863
auto Type = GetDeviceType(Device);
864-
if (Type == DeviceType::GPU_PVC) {
864+
if (Type == DeviceType::GPU_PVC || Type == DeviceType::GPU_DG2) {
865865
if (Data->PrivateShadowOffset) {
866866
Result = context.urDdiTable.USM.pfnFree(
867867
Context, (void *)Data->PrivateShadowOffset);

0 commit comments

Comments
 (0)