X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_valgrind.c;h=bf914856845f2a7a42e9cec97d210c9b7c3ef06a;hp=818143777e2571e934bc59e98d215a1b3bf7bfcf;hb=13911ef769824a0958e1f1ce7292dfc8f23feb18;hpb=ccf01ebb81709496554f1450d06b5dc2a09293f8 diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index 81814377..bf914856 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -165,8 +165,10 @@ static void do_run_tests_vg(struct manifest *m, options = concat(score, per_file_options(&tests_pass_valgrind, i)); - if (streq(options, "FAIL")) + if (streq(options, "FAIL")) { + i->leak_info = NULL; continue; + } if (keep) talloc_set_destructor(i->valgrind_log, NULL);