mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- Fixed possible memory leak in the non-Windows version of CreatePath().
SVN r4258 (trunk)
This commit is contained in:
parent
e8d8e67b56
commit
363ca592b0
1 changed files with 1 additions and 0 deletions
|
@ -537,6 +537,7 @@ void CreatePath(const char *fn)
|
|||
}
|
||||
if (mkdir(copy, 0755) == -1)
|
||||
{ // failed
|
||||
free(copy);
|
||||
return;
|
||||
}
|
||||
exists: if (p != NULL)
|
||||
|
|
Loading…
Reference in a new issue