NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN

Free a Value returned by fetch() More...

+ Collaboration diagram for free():

Functions

static void store_bdb_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_gdbm_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_kyotocabinet_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_lmdb_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_qdbm_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_rocksdb_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_tokyocabinet_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 
static void store_tdb_free (void *store, void **ptr)
 Implements StoreOps::free() -. More...
 

Detailed Description

Free a Value returned by fetch()

Parameters
[in]storeStore retrieved via open()
[out]ptrValue to be freed

Function Documentation

◆ store_bdb_free()

static void store_bdb_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 181 of file bdb.c.

182 {
183  FREE(ptr);
184 }
#define FREE(x)
Definition: memory.h:40

◆ store_gdbm_free()

static void store_gdbm_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 81 of file gdbm.c.

82 {
83  FREE(ptr);
84 }
#define FREE(x)
Definition: memory.h:40

◆ store_kyotocabinet_free()

static void store_kyotocabinet_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 83 of file kc.c.

84 {
85  if (!ptr || !*ptr)
86  return;
87 
88  kcfree(*ptr);
89  *ptr = NULL;
90 }

◆ store_lmdb_free()

static void store_lmdb_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 219 of file lmdb.c.

220 {
221  /* LMDB data is owned by the database */
222 }

◆ store_qdbm_free()

static void store_qdbm_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 70 of file qdbm.c.

71 {
72  FREE(ptr);
73 }
#define FREE(x)
Definition: memory.h:40

◆ store_rocksdb_free()

static void store_rocksdb_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 113 of file rocksdb.c.

114 {
115  FREE(ptr);
116 }
#define FREE(x)
Definition: memory.h:40

◆ store_tokyocabinet_free()

static void store_tokyocabinet_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 79 of file tc.c.

80 {
81  FREE(ptr);
82 }
#define FREE(x)
Definition: memory.h:40

◆ store_tdb_free()

static void store_tdb_free ( void *  store,
void **  ptr 
)
static

Implements StoreOps::free() -.

Definition at line 77 of file tdb.c.

78 {
79  FREE(ptr);
80 }
#define FREE(x)
Definition: memory.h:40