Marked code that will require some rework for LMDB.
authorArt Cancro <ajc@citadel.org>
Mon, 7 Aug 2023 14:55:11 +0000 (05:55 -0900)
committerArt Cancro <ajc@citadel.org>
Mon, 7 Aug 2023 14:55:11 +0000 (05:55 -0900)
commitaf89b096510aa052f846849872367cb434f1a014
tree258b83a71d8f5be681052e0f29a75084cb18ea7b
parent10d45fbc863c38d7222d16917a4bd6e45476fe24
Marked code that will require some rework for LMDB.

When BDB returns data, the caller owns the memory and is required to
free it, which we usually do.  I marked the places where we take ownership
of memory pointers and then set the BDB ptr to NULL.  If we switch to
LMDB, those pointers remain valid forever, so we cannot simply free them
later.
citadel/server/modules/fulltext/serv_fulltext.c
citadel/server/modules/imap/serv_imap.c
citadel/server/modules/nntp/serv_nntp.c
citadel/server/msgbase.c
citadel/server/room_ops.c