From 363ca592b05a06cca3736a02cd7fd73ba5bdde73 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 12 May 2013 18:37:31 +0000 Subject: [PATCH] - Fixed possible memory leak in the non-Windows version of CreatePath(). SVN r4258 (trunk) --- src/cmdlib.cpp | 1 + 1 file changed, 1 insertion(+) 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)