nostrdb

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

commit 690b5ee6b390b61becb95ff18b24e96001f25b60
parent 6928a36c81e0c488e2a05dbe052b236cd2f8a499
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 11 Jul 2025 12:26:18 -0700

mem: builder clear before free

Diffstat:
Msrc/nostrdb.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -2674,13 +2674,16 @@ void ndb_profile_record_builder_init(struct ndb_profile_record_builder *b) void ndb_profile_record_builder_free(struct ndb_profile_record_builder *b) { - if (b->builder) + if (b->builder) { + flatcc_builder_clear(b->builder); free(b->builder); + } if (b->flatbuf) free(b->flatbuf); b->builder = NULL; b->flatbuf = NULL; + } int ndb_process_profile_note(struct ndb_note *note,