summaryrefslogtreecommitdiff
path: root/src/libdatastruct/bigkv_free.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-25 10:56:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-25 10:56:25 +0000
commitc9e549afa60dc3c4660e1de42a79f810299c2ade (patch)
tree83f0416c10cfab5079d9aee1a046ecaf5c73c2cc /src/libdatastruct/bigkv_free.c
parent9945737a8f0612b8980d9da3db3e6a4ab8a247f4 (diff)
downloadskalibs-c9e549afa60dc3c4660e1de42a79f810299c2ade.tar.xz
Better bigkv
Diffstat (limited to 'src/libdatastruct/bigkv_free.c')
-rw-r--r--src/libdatastruct/bigkv_free.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libdatastruct/bigkv_free.c b/src/libdatastruct/bigkv_free.c
index 9b43c52..848c614 100644
--- a/src/libdatastruct/bigkv_free.c
+++ b/src/libdatastruct/bigkv_free.c
@@ -10,4 +10,5 @@ void bigkv_free (bigkv_t *b)
avltree_free(&b->map) ;
genalloc_free(bigkv_node_t, &b->nodes) ;
stralloc_free(&b->storage) ;
+ *b = bigkv_zero ;
}