~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New function to decide whether a share is already inserted.
[catacomb]
/
lmem.c
diff --git
a/lmem.c
b/lmem.c
index
1d4ae87
..
5c36e98
100644
(file)
--- a/
lmem.c
+++ b/
lmem.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id
: lmem.c,v 1.6 2004/04/08 01:36:15 mdw Exp
$
+ * $Id$
*
* Locked memory allocation (Unix-specific)
*
*
* Locked memory allocation (Unix-specific)
*
@@
-307,10
+307,12
@@
void l_destroy(lmem *lm)
}
memset(lm->p, 0, lm->sz);
}
memset(lm->p, 0, lm->sz);
+#ifdef HAVE_MLOCK
if (lm->f & LF_LOCKED)
munmap(lm->p, lm->sz);
else
if (lm->f & LF_LOCKED)
munmap(lm->p, lm->sz);
else
- free(lm->p);
+#endif
+ free(lm->p); /*sic*/
}
/* --- @l_report@ --- *
}
/* --- @l_report@ --- *