From abb229194140f37194e83bcb499c29336db05342 Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 25 Feb 2016 13:45:17 -0500 Subject: [PATCH] P4 to Git Change 1240661 by smekhano@stas-nova-hsa on 2016/02/25 13:30:49 SWDEV-85940 - Complib: fix memory leak in aclCompileInternal() CodeGenInit Testing: smoke, precheckin, test_compiler Reviewed by Evgeny Mankov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#91 edit --- rocclr/compiler/lib/backends/common/v0_8/if_acl.cpp | 1 + 1 file changed, 1 insertion(+) 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) {