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
This commit is contained in:
foreman
2015-06-15 11:16:34 -04:00
parent 252f926c9e
commit 95c9e2f9af
+1
View File
@@ -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;