X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/12ed8a1f566d8c2020b988462db74435c716088a..02dfbd5b7af7816959dbd39c1fe628451204e35f:/lmem.c diff --git a/lmem.c b/lmem.c index ed79630..5c36e98 100644 --- a/lmem.c +++ b/lmem.c @@ -307,9 +307,11 @@ void l_destroy(lmem *lm) } memset(lm->p, 0, lm->sz); +#ifdef HAVE_MLOCK if (lm->f & LF_LOCKED) munmap(lm->p, lm->sz); else +#endif free(lm->p); /*sic*/ }