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

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

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