tdb2: fix leak in test/run-remap-in-read_traverse.c
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
ccan/tdb2/test/run-remap-in-read_traverse.c

index 66fc82ed8b4b18b0441ea0bdcae63f9be1141f04..6285bf47e1b804e9428bdee971e6cec17f6c1dc2 100644 (file)
@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
        /* Now store something! */
        ok1(tdb_store(tdb, d, d, TDB_INSERT) == 0);
        ok1(tap_log_messages == 0);
+       tdb_close(tdb);
        free_external_agent(agent);
        return exit_status();
 }