diff --git a/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp b/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp index 8487f8e6d1..172214cb74 100644 --- a/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp +++ b/rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp @@ -1390,6 +1390,7 @@ aclCompileInternal( if (isHSAILTarget(bin->target) && error_code == ACL_SUCCESS) { amdcl::HSAIL *acl = reinterpret_cast(cl->cgAPI.init(cl, bin, compile_callback, &error_code)); acl->deleteBRIG(); + cl->cgAPI.fini(reinterpret_cast(acl)); } cl->beAPI.fini(ald); if (error_code != ACL_SUCCESS) {