X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_valgrind.c;h=8ccdad963ee072e88a32400ce3b3cba9f29ff987;hb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;hp=bf914856845f2a7a42e9cec97d210c9b7c3ef06a;hpb=04f453bbedd1eca3e5ab93290304d8193ffdd87f;p=ccan diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index bf914856..8ccdad96 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -146,7 +146,6 @@ static const char *concat(struct score *score, char *bits[]) /* FIXME: Run examples, too! */ static void do_run_tests_vg(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) { @@ -170,9 +169,6 @@ static void do_run_tests_vg(struct manifest *m, continue; } - if (keep) - talloc_set_destructor(i->valgrind_log, NULL); - output = grab_file(i, i->valgrind_log, NULL); /* No valgrind errors? */ if (!output || output[0] == '\0') { @@ -191,7 +187,6 @@ static void do_run_tests_vg(struct manifest *m, } static void do_leakcheck_vg(struct manifest *m, - bool keep, unsigned int *timeleft, struct score *score) {