- Fixed possible memory leak in the non-Windows version of CreatePath().

SVN r4258 (trunk)
This commit is contained in:
Randy Heit 2013-05-12 18:37:31 +00:00
parent e8d8e67b56
commit 363ca592b0

View file

@ -537,6 +537,7 @@ void CreatePath(const char *fn)
}
if (mkdir(copy, 0755) == -1)
{ // failed
free(copy);
return;
}
exists: if (p != NULL)