From a39bb1db2b6780f1728b9790a78b30ae10166ec3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 00:41:02 +0100 Subject: [PATCH] Fixed another resource leak in win/win.c. --- src/win/win.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win/win.c b/src/win/win.c index 5175d65e3..a9aec2a81 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -336,6 +336,9 @@ ProcessCommandLine(wchar_t ***argw) args[argc] = NULL; *argw = args; + if (argbuf != NULL) + free(argbuf); + return(argc); }