ref: 94cf1f21d53ccad2bbe97579c2ce685c82999d20
parent: fadd13284982cc1ab637f6069aceefa48fb46cab
author: Turo Lamminen <[email protected]>
date: Mon Feb 1 10:47:39 EST 2021
Free string in myargv before replacing
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -268,6 +268,7 @@
// the loop we'll ignore it. Since some parameters stop reading when
// an argument beginning with a '-' is encountered, we keep something
// that starts with a '-'.
+ free(myargv[i]);
myargv[i] = M_StringDuplicate("-_");
LoadResponseFile(i + 1, myargv[i + 1]);
}