Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus Let's not free an uninitialized variable.
details: https://anonhg.NetBSD.org/src/rev/270cee50a82a
branches: trunk
changeset: 525972:270cee50a82a
user: matt <matt%NetBSD.org@localhost>
date: Mon Apr 22 19:29:55 2002 +0000
description:
Let's not free an uninitialized variable.
diffstat:
sys/dev/cardbus/rbus.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r b5c9cc8b9a4e -r 270cee50a82a sys/dev/cardbus/rbus.c
--- a/sys/dev/cardbus/rbus.c Mon Apr 22 19:24:28 2002 +0000
+++ b/sys/dev/cardbus/rbus.c Mon Apr 22 19:29:55 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rbus.c,v 1.13 2002/03/10 22:27:04 christos Exp $ */
+/* $NetBSD: rbus.c,v 1.14 2002/04/22 19:29:55 matt Exp $ */
/*
* Copyright (c) 1999 and 2000
* HAYAKAWA Koichi. All rights reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rbus.c,v 1.13 2002/03/10 22:27:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rbus.c,v 1.14 2002/04/22 19:29:55 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -294,7 +294,6 @@
} else if (flags == RBUS_SPACE_DEDICATE) {
if (NULL == (ex = extent_create("rbus", start, end, M_DEVBUF,
NULL, 0, EX_NOCOALESCE|EX_NOWAIT))) {
- free(rb, M_DEVBUF);
return NULL;
}
} else if (flags == RBUS_SPACE_ASK_PARENT) {
Home |
Main Index |
Thread Index |
Old Index