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
This commit is contained in:
@@ -1390,6 +1390,7 @@ aclCompileInternal(
|
||||
if (isHSAILTarget(bin->target) && error_code == ACL_SUCCESS) {
|
||||
amdcl::HSAIL *acl = reinterpret_cast<amdcl::HSAIL*>(cl->cgAPI.init(cl, bin, compile_callback, &error_code));
|
||||
acl->deleteBRIG();
|
||||
cl->cgAPI.fini(reinterpret_cast<aclLoaderData*>(acl));
|
||||
}
|
||||
cl->beAPI.fini(ald);
|
||||
if (error_code != ACL_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user