mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 16:41:07 +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)
|
if (mkdir(copy, 0755) == -1)
|
||||||
{ // failed
|
{ // failed
|
||||||
|
free(copy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
exists: if (p != NULL)
|
exists: if (p != NULL)
|
||||||
|
|
Loading…
Reference in a new issue