summaryrefslogtreecommitdiff
path: root/src/libdatastruct/bigkv_free.c
blob: 9b43c52881396812ed5bc5d765bf40f146614e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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) ;
}