P4 to Git Change 1321686 by emankov@em-hsa-amd on 2016/10/03 06:43:39
SWDEV-103207 - FIX: clCreateProgramWithBinary memory leak - REGRESSION Leaks were in Runtime in functions Program::addDeviceProgram and Program::link. [Testing] http://ocltc.amd.com:8111/viewModification.html?modId=77100&personal=true&init=1&tab=vcsModificationBuilds&show_all_builds=true [Reviewer] Stanislav Mekhanoshin Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#84 edit
This commit is contained in:
@@ -102,6 +102,7 @@ Program::addDeviceProgram(Device& device, const void* image, size_t length,
|
||||
}
|
||||
}
|
||||
options->oVariables->Legacy = isAMDILTarget(*aclutGetTargetInfo(binary));
|
||||
aclBinaryFini(binary);
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
options->oVariables->BinaryIsSpirv = isSPIRV_;
|
||||
@@ -332,6 +333,7 @@ Program::link(
|
||||
} else if (isAMDILTarget(*aclutGetTargetInfo(aclBin))) {
|
||||
parsedOptions.oVariables->Frontend = "edg";
|
||||
}
|
||||
aclBinaryFini(aclBin);
|
||||
}
|
||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||
found = true;
|
||||
|
||||
Reference in New Issue
Block a user