Fix tiny memory leak when looking for IWADs

This commit is contained in:
mfrancis95 2018-11-21 13:06:58 -05:00
parent fbb2fa82c5
commit 255b76c338

View file

@ -481,6 +481,7 @@ static char *CheckDirectoryHasIWAD(const char *dir, const char *iwadname)
filename = M_StringJoin(dir, DIR_SEPARATOR_S, iwadname, NULL);
}
free(probe);
probe = M_FileCaseExists(filename);
free(filename);
if (probe != NULL)