Skip to content

Commit

Permalink
Fix CID 1393662 (Resource leak)
Browse files Browse the repository at this point in the history
  • Loading branch information
stweil committed Jul 1, 2018
1 parent 98758fb commit d3c4642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/opencl/openclwrapper.cpp
Expand Up @@ -1005,6 +1005,7 @@ int OpenclDevice::CompileKernelFile(GPUEnv* gpuInfo, const char* buildOption) {
size_t length = pos;
b_error |= fseek(fd, 0, SEEK_SET) < 0;
if (b_error) {
fclose(fd);
return 0;
}

Expand Down

0 comments on commit d3c4642

Please sign in to comment.