test_lifeless
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Jan 2012 22:07:53 +0000 (23:07 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:46:59 +0000 (18:46 +0200)
lib/talloc/testsuite.c

index 7590e9f17286e53e196eb789111ebba6cc5e5e44..7736a9155182387fec5b9ea285f73e5c301d546d 100644 (file)
@@ -888,13 +888,19 @@ static bool test_lifeless(void)
        child = talloc_strdup(parent, "child");  
        (void)talloc_reference(child, parent);
        (void)talloc_reference(child_owner, child); 
-       talloc_report_full(top, stderr);
+       talloc_report_full(NULL, stderr);
        talloc_unlink(top, parent);
-       talloc_unlink(top, child);
-       talloc_report_full(top, stderr);
+       talloc_report_full(NULL, stderr);
+       talloc_report_full(child, stderr);
+       talloc_report_full(parent, stderr);
+       talloc_unlink(child, parent);
+       talloc_report_full(NULL, stderr);
        talloc_free(top);
-       talloc_free(child_owner);
+       talloc_report_full(NULL, stderr);
        talloc_free(child);
+       talloc_report_full(NULL, stderr);
+       talloc_free(child_owner);
+       talloc_report_full(NULL, stderr);
 
        printf("success: lifeless\n");
        return true;