nostrdb: mem: close cursors in print helpers
This commit is contained in:
committed by
Daniel D’Aquino
parent
8014d772ba
commit
aa8ce31941
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user