* src/main.c (decode_switches): Fix memory leak.

This commit is contained in:
Paul Smith 2021-09-05 22:28:10 -04:00
parent 0d367bbe6e
commit 55f06bdc3f

View file

@ -2973,7 +2973,7 @@ decode_switches (int argc, const char **argv, int env)
break; break;
if (! coptarg) if (! coptarg)
coptarg = xstrdup (cs->noarg_value); coptarg = cs->noarg_value;
else if (*coptarg == '\0') else if (*coptarg == '\0')
{ {
char opt[2] = "c"; char opt[2] = "c";