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

#include <skalibs/posixplz.h>
#include <skalibs/cdb.h>

extern void cdb_free (cdb *c)
{
  if (c->map)
  {
    munmap_void((void *)c->map, c->size) ;
    c->map = 0 ;
  }
}