From ff00f2cea73f4ea2a7e4550dc30efc9503dc1ed4 Mon Sep 17 00:00:00 2001 From: anusha GodavarthySurya Date: Wed, 1 Dec 2021 08:16:58 -0800 Subject: [PATCH] SWDEV-284895 - unload program object before releasing it Change-Id: Ib10c9877043d90de8e292db319bb9def43df8061 --- hipamd/src/hip_fatbin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/hipamd/src/hip_fatbin.cpp b/hipamd/src/hip_fatbin.cpp index 5407cde476..c36609730f 100644 --- a/hipamd/src/hip_fatbin.cpp +++ b/hipamd/src/hip_fatbin.cpp @@ -6,6 +6,7 @@ namespace hip { FatBinaryDeviceInfo::~FatBinaryDeviceInfo() { if (program_ != nullptr) { + program_->unload(); program_->release(); program_ = nullptr; }