]> git.ozlabs.org Git - ccan/commitdiff
configurator: always true branch
authorNiklas Claesson <nicke.claesson@gmail.com>
Wed, 5 Feb 2020 21:03:10 +0000 (22:03 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 8 Sep 2021 05:17:44 +0000 (14:47 +0930)
tools/configurator/configurator.c

index 9487e694ce2329a5e74300c1ca596661943ced27..c0598509b8c0fa677ea426ab11e8b2a674f12838 100644 (file)
@@ -765,9 +765,7 @@ static bool run_test(const char *cmd, const char *wrapper, struct test *test)
                        strcpy(cmd, wrapper);
                        strcat(cmd, " ." DIR_SEP OUTPUT_FILE);
                        output = run(cmd, &status);
-                       if (wrapper) {
-                               free(cmd);
-                       }
+                       free(cmd);
                        if (!strstr(test->style, "EXECUTE") && status != 0)
                                c12r_errx(EXIT_BAD_TEST,
                                          "Test for %s failed with %i:\n%s",