Fix a potential leak when opening a data file on Windows

This commit is contained in:
Chris Robinson
2014-12-01 19:27:09 -08:00
parent 0c74a14543
commit 3d1f1ffd7f
+2
View File
@@ -530,6 +530,8 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
if((f=_wfopen(buffer, L"rb")) != NULL)
{
TRACE("Opened %ls\n", buffer);
free(wname);
free(wsubdir);
return f;
}
}