]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/main.c (decode_switches): Fix memory leak.
authorPaul Smith <psmith@gnu.org>
Mon, 6 Sep 2021 02:28:10 +0000 (22:28 -0400)
committerPaul Smith <psmith@gnu.org>
Mon, 6 Sep 2021 02:28:10 +0000 (22:28 -0400)
src/main.c

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