From: Niklas Claesson Date: Wed, 5 Feb 2020 21:03:10 +0000 (+0100) Subject: configurator: always true branch X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=f9ac4f56c4a159a2ff531c9b9bae7854931bd038 configurator: always true branch --- 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",