Kaydet (Commit) f170ca9c authored tarafından Markus Mohrhard's avatar Markus Mohrhard

CID#1158216: resource leak

üst 05d160d4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment