skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

bigkv_free.c (286B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/stralloc.h>
      4 #include <skalibs/genalloc.h>
      5 #include <skalibs/avltree.h>
      6 #include <skalibs/bigkv.h>
      7 
      8 void bigkv_free (bigkv *b)
      9 {
     10   avltree_free(&b->map) ;
     11   genalloc_free(bigkv_node, &b->nodes) ;
     12   stralloc_free(&b->storage) ;
     13   *b = bigkv_zero ;
     14 }