nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 3cda40624b6236f32c95f06ebbaacb7a25ae71b2
parent a17d68b21cac2e17f274c74020fd7b7c16fad8b6
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 16 Dec 2024 16:45:34 -0800

test: fix some test memory leaks

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mtest.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test.c b/test.c @@ -333,6 +333,7 @@ static void test_reaction_counter() assert(reactions == 2); ndb_end_query(&txn); ndb_destroy(ndb); + free(json); } static void test_profile_search(struct ndb *ndb) @@ -415,6 +416,7 @@ static void test_profile_updates() assert(!strcmp(name, "c")); ndb_destroy(ndb); + free(json); } static void test_load_profiles()