summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hashtable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c
index 5cea985..6a1e8f5 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -57,6 +57,8 @@ errout:
/**
* Free hashtable including all nodes
* @arg ht Hashtable
+ *
+ * @note Reference counter of all objects in the hashtable will be decremented.
*/
void nl_hash_table_free(nl_hash_table_t *ht)
{
@@ -69,6 +71,7 @@ void nl_hash_table_free(nl_hash_table_t *ht)
while (node) {
saved_node = node;
node = node->next;
+ nl_object_put(saved_node->obj);
free(saved_node);
}
}