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

#include <stdint.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/gensetdyn.h>

void gensetdyn_free (gensetdyn *g)
{
  stralloc_free(&g->storage) ;
  genalloc_free(uint32_t, &g->freelist) ;
  *g = gensetdyn_zero ;
}