]> git.ozlabs.org Git - ccan/blobdiff - tools/configurator/configurator.c
configurator: always true branch
[ccan] / 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",