]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-record-expand.c
tdb2: allow multiple opens of the same file.
[ccan] / ccan / tdb2 / test / run-record-expand.c
index 27d58ff36ab4d35cb955f5cec516728031052e68..63bbf18d4fc0cae98769dff1c9851aac7b099214 100644 (file)
@@ -1,4 +1,5 @@
 #include <ccan/tdb2/tdb.c>
+#include <ccan/tdb2/open.c>
 #include <ccan/tdb2/free.c>
 #include <ccan/tdb2/lock.c>
 #include <ccan/tdb2/io.c>
@@ -46,5 +47,7 @@ int main(int argc, char *argv[])
                tdb_close(tdb);
        }
        ok1(tap_log_messages == 0);
+       free(data.dptr);
+
        return exit_status();
 }