X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fconfigurator%2Fconfigurator.c;fp=tools%2Fconfigurator%2Fconfigurator.c;h=c0598509b8c0fa677ea426ab11e8b2a674f12838;hp=9487e694ce2329a5e74300c1ca596661943ced27;hb=f9ac4f56c4a159a2ff531c9b9bae7854931bd038;hpb=c16c021735d53348b6f5fe119e35feea85e6638e;ds=sidebyside diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index 9487e694..c0598509 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -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",