diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-19 17:46:10 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-01-19 18:15:50 +0100 |
commit | f170ca9c91f8092659d6fe5afcf53db7514f224a (patch) | |
tree | 86c3ee159f10b03122d167e1800d9fd46dfe0687 /sc | |
parent | 05d160d4663f2fa4c169cc0c997624ef32805c1b (diff) |
CID#1158216: resource leak
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/opencl_device_selection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/opencl/opencl_device_selection.h b/sc/source/core/opencl/opencl_device_selection.h index d6f775a49722..74d2f1f6cd3b 100644 --- a/sc/source/core/opencl/opencl_device_selection.h +++ b/sc/source/core/opencl/opencl_device_selection.h @@ -363,6 +363,7 @@ inline ds_status readProFile(const char* fileName, char** content, size_t* conte binary = (char*)malloc(size); if (binary == NULL) { + fclose(input); return DS_FILE_ERROR; } size_t bytesRead = fread(binary, sizeof(char), size, input); |