VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mount')
-rw-r--r--src/Mount/Mount.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index eee282a8..3cf9b9a7 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -6566,7 +6566,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
void ExtractCommandLine (HWND hwndDlg, char *lpszCommandLine)
{
- char **lpszCommandLineArgs; /* Array of command line arguments */
+ char **lpszCommandLineArgs = NULL; /* Array of command line arguments */
int nNoCommandLineArgs; /* The number of arguments in the array */
char tmpPath[MAX_PATH * 2];
@@ -6842,6 +6842,9 @@ void ExtractCommandLine (HWND hwndDlg, char *lpszCommandLine)
{
free (lpszCommandLineArgs[nNoCommandLineArgs]);
}
+
+ if (lpszCommandLineArgs)
+ free (lpszCommandLineArgs);
}