summaryrefslogtreecommitdiff
path: root/src/libdatastruct/bigkv_free.c
blob: 848c6144a4d5d0cd075b1b2daf1cb650e3559972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/avltree.h>
#include <skalibs/bigkv.h>

void bigkv_free (bigkv_t *b)
{
  avltree_free(&b->map) ;
  genalloc_free(bigkv_node_t, &b->nodes) ;
  stralloc_free(&b->storage) ;
  *b = bigkv_zero ;
}