talloc: check block count aftter references test
authorAndrew Tridgell <tridge@samba.org>
Thu, 4 Aug 2011 02:07:19 +0000 (12:07 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 4 Aug 2011 06:17:25 +0000 (16:17 +1000)
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

lib/talloc/testsuite.c

index b038d340d1c1d7d7357f84a56eb87edc54864750..003d74bf6dc31adafcda2c7bd322aa5dd6bfcc3f 100644 (file)
@@ -1317,6 +1317,7 @@ static bool test_rusty(void)
        talloc_increase_ref_count(p1);
        talloc_report_full(root, stdout);
        talloc_free(root);
+       CHECK_BLOCKS("null_context", NULL, 2);
        return true;
 }