P4 to Git Change 1161448 by jatang@jatang-opencl-hsa-stg1 on 2015/06/15 11:08:17
EPR #419656 - Fix a double free.
The double free is showing up when running a GEHC script that runs 6 OCL app simultanously.
We'll later need to look at why elfOut_->hasError() is true.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#180 edit
[ROCm/clr commit: 95c9e2f9af]
This commit is contained in:
@@ -1550,6 +1550,7 @@ bool ClBinary::setElfOut(unsigned char eclass, const char* outFile)
|
||||
if ( (elfOut_ == NULL) || elfOut_->hasError() ) {
|
||||
if (elfOut_) {
|
||||
delete elfOut_;
|
||||
elfOut_ = NULL;
|
||||
}
|
||||
LogError("Creating ouput ELF object failed");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user