summaryrefslogtreecommitdiff
path: root/src/libstddjb/cdb_free.c
blob: 04ebf3ec688785256b442be930ee7707fc4daebc (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <sys/mman.h>
#include <skalibs/cdb.h>

extern void cdb_free (struct cdb *c)
{
  if (c->map) munmap(c->map, c->size) ;
  *c = cdb_zero ;
}