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

#include <sys/types.h>
#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 ;
}