factorial: Fix usage message to fit in with conventions.
[u/mdw/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-*-
  *
- * $Id: lmem.c,v 1.6 2004/04/08 01:36:15 mdw Exp $
+ * $Id$
  *
  * Locked memory allocation (Unix-specific)
  *
@@ -307,10 +307,12 @@ 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
-    free(lm->p);
+#endif
+    free(lm->p); /*sic*/
 }
 
 /* --- @l_report@ --- *