From aa8ce31941b18062bf3d651b25d2cb767631b534 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 11 Jul 2025 12:26:43 -0700 Subject: [PATCH] nostrdb: mem: close cursors in print helpers --- nostrdb/src/nostrdb.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index bb11499b..6661e100 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -7848,6 +7848,8 @@ int ndb_print_author_kind_index(struct ndb_txn *txn) i++; } + mdb_cursor_close(cur); + return i; } @@ -7872,6 +7874,8 @@ int ndb_print_relay_kind_index(struct ndb_txn *txn) i++; } + mdb_cursor_close(cur); + return i; } @@ -7891,6 +7895,8 @@ int ndb_print_tag_index(struct ndb_txn *txn) i++; } + mdb_cursor_close(cur); + return 1; } @@ -7913,6 +7919,8 @@ int ndb_print_kind_keys(struct ndb_txn *txn) i++; } + mdb_cursor_close(cur); + return 1; } @@ -7940,6 +7948,8 @@ int ndb_print_search_keys(struct ndb_txn *txn) i++; } + mdb_cursor_close(cur); + return 1; }