tdb2: test: fix run-57-die-during-transaction.c to be more efficient.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:16 +0000 (15:39 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:09:16 +0000 (15:39 +0930)
commitd9cbd7d4454ae35e4e2f6d18a9469bf26948e4b9
treeecbd143701897be3133e9255f4f0e3ca5560d738
parent1be090a2d749713cfd0c4584cafb97bffd716189
tdb2: test: fix run-57-die-during-transaction.c to be more efficient.

We track malloc and free, but we didn't catch the free() inside
external_agent, which means that our list of allocations keeps
growing.  Particularly under valgrind, which re-uses memory less than
the glibc allocator.
ccan/tdb2/test/external-agent.c
ccan/tdb2/test/external-agent.h
ccan/tdb2/test/run-57-die-during-transaction.c