Skip to content

Commit

Permalink
Merge pull request tesseract-ocr#457 from stweil/opencl
Browse files Browse the repository at this point in the history
opencl: Fix mismatched new[] / free
  • Loading branch information
zdenop authored Oct 29, 2016
2 parents 7f57ac4 + ab8209c commit 44e6e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ int OpenclDevice::ReleaseOpenclEnv( GPUEnv *gpuInfo )
}
isInited = 0;
gpuInfo->mnIsUserCreated = 0;
free( gpuInfo->mpArryDevsID );
delete[] gpuInfo->mpArryDevsID;
return 1;
}
int OpenclDevice::BinaryGenerated( const char * clFileName, FILE ** fhandle )
Expand Down

0 comments on commit 44e6e87

Please sign in to comment.