]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass_valgrind.c
ccanlint: remove argument to -k/--keep
[ccan] / tools / ccanlint / tests / tests_pass_valgrind.c
index bf914856845f2a7a42e9cec97d210c9b7c3ef06a..8ccdad963ee072e88a32400ce3b3cba9f29ff987 100644 (file)
@@ -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)
 {