nostrdb

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

commit f3a5a019420221815386587e6bf43af391b2a1ef
parent 8f9d54831a496f47a4259e5a116ec2229b7bf872
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 11 Jul 2025 12:27:05 -0700

test: free things that need to be freed

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

diff --git a/test.c b/test.c @@ -917,6 +917,7 @@ static void test_parse_filter_json() } } + ndb_filter_destroy(f); } static void test_parse_json() { @@ -1752,6 +1753,7 @@ static void test_filter_is_subset() { assert(ndb_filter_is_subset_of(k, ki) == 0); ndb_filter_destroy(g); + ndb_filter_destroy(k); ndb_filter_destroy(ki); } @@ -1880,6 +1882,7 @@ static void test_note_relay_index() assert(ndb_end_query(&txn)); // Cleanup + ndb_filter_destroy(f); ndb_destroy(ndb); printf("ok test_note_relay_index\n"); @@ -2018,6 +2021,8 @@ static void test_custom_filter() assert(ndb_note_id(results[0].note)[0] == 0x3d); // Cleanup + ndb_filter_destroy(f); + ndb_filter_destroy(f2); ndb_destroy(ndb); printf("ok test_custom_filter\n");