diff --git a/src/cmdlib.cpp b/src/cmdlib.cpp index c33cfdf37..557c80cf8 100644 --- a/src/cmdlib.cpp +++ b/src/cmdlib.cpp @@ -537,6 +537,7 @@ void CreatePath(const char *fn) } if (mkdir(copy, 0755) == -1) { // failed + free(copy); return; } exists: if (p != NULL)