Fix tiny memory leak when looking for IWADs
This commit is contained in:
parent
fbb2fa82c5
commit
255b76c338
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue