s4/torture: Suppress Valgrind warnings
authorKamen Mazdrashki <kamenim@samba.org>
Mon, 29 Mar 2010 21:13:46 +0000 (00:13 +0300)
committerKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Thu, 8 Apr 2010 23:45:08 +0000 (02:45 +0300)
This patch suppresses two Valgrind warnings of type
"xxx bytes in yy blocks are indirectly lost in loss record"

source4/torture/smbtorture.c

index 2aa340ee36988dc92fd4e4b767b72dd9a57f3d83..d3b1fead4871b458e87c82cb9d4d2dedd16998a8 100644 (file)
@@ -641,7 +641,8 @@ int main(int argc,char *argv[])
 
        results = torture_results_init(talloc_autofree_context(), ui_ops);
 
-       torture = torture_context_init(s4_event_context_init(NULL), results);
+       torture = torture_context_init(s4_event_context_init(talloc_autofree_context()),
+                                      results);
        if (basedir != NULL) {
                if (basedir[0] != '/') {
                        fprintf(stderr, "Please specify an absolute path to --basedir\n");