Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use FREE instead of free for MALLOC'ed memory.
details: https://anonhg.NetBSD.org/src/rev/dd180b85e239
branches: trunk
changeset: 546561:dd180b85e239
user: yamt <yamt%NetBSD.org@localhost>
date: Thu May 01 14:59:51 2003 +0000
description:
use FREE instead of free for MALLOC'ed memory.
diffstat:
sys/kern/vfs_lockf.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r eaefe0c9fb55 -r dd180b85e239 sys/kern/vfs_lockf.c
--- a/sys/kern/vfs_lockf.c Thu May 01 14:36:43 2003 +0000
+++ b/sys/kern/vfs_lockf.c Thu May 01 14:59:51 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lockf.c,v 1.27 2003/05/01 14:36:43 yamt Exp $ */
+/* $NetBSD: vfs_lockf.c,v 1.28 2003/05/01 14:59:51 yamt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.27 2003/05/01 14:36:43 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.28 2003/05/01 14:59:51 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -309,7 +309,7 @@
break;
wlwp = waitblock->lf_lwp;
if (wlwp == lock->lf_lwp) {
- free(lock, M_LOCKF);
+ FREE(lock, M_LOCKF);
return (EDEADLK);
}
}
@@ -319,7 +319,7 @@
* a cycle to be safe.
*/
if (i >= maxlockdepth) {
- free(lock, M_LOCKF);
+ FREE(lock, M_LOCKF);
return (EDEADLK);
}
}
@@ -361,7 +361,7 @@
lock->lf_next = NOLOCKF;
}
if (error) {
- free(lock, M_LOCKF);
+ FREE(lock, M_LOCKF);
return (error);
}
}
@@ -416,7 +416,7 @@
* Check for common starting point and different types.
*/
if (overlap->lf_type == lock->lf_type) {
- free(lock, M_LOCKF);
+ FREE(lock, M_LOCKF);
lock = overlap; /* for debug output below */
break;
}
@@ -457,7 +457,7 @@
needtolink = 0;
} else
*prev = overlap->lf_next;
- free(overlap, M_LOCKF);
+ FREE(overlap, M_LOCKF);
continue;
case 4: /* overlap starts before lock */
@@ -544,7 +544,7 @@
case 3: /* lock contains overlap */
*prev = overlap->lf_next;
lf = overlap->lf_next;
- free(overlap, M_LOCKF);
+ FREE(overlap, M_LOCKF);
continue;
case 4: /* overlap starts before lock */
Home |
Main Index |
Thread Index |
Old Index