diff options
author | 2002-06-07 02:06:09 +0000 | |
---|---|---|
committer | 2002-06-07 02:06:09 +0000 | |
commit | ca8120d2beec2dea7199409dca198e48c783b030 (patch) | |
tree | df741b301d042982e613e32c75619b25c179d9ef | |
parent | While src is rarely NULL, ssrc might be. Fixes PR#2721. (diff) | |
download | wireguard-openbsd-ca8120d2beec2dea7199409dca198e48c783b030.tar.xz wireguard-openbsd-ca8120d2beec2dea7199409dca198e48c783b030.zip |
Don't free an uninitialized pointer. art@ ok
-rw-r--r-- | sys/dev/cardbus/rbus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/cardbus/rbus.c b/sys/dev/cardbus/rbus.c index 1cb3ebc6b0c..0a315f3a25e 100644 --- a/sys/dev/cardbus/rbus.c +++ b/sys/dev/cardbus/rbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rbus.c,v 1.4 2002/03/14 01:26:53 millert Exp $ */ +/* $OpenBSD: rbus.c,v 1.5 2002/06/07 02:06:09 nordin Exp $ */ /* $NetBSD: rbus.c,v 1.3 1999/11/06 06:20:53 soren Exp $ */ /* * Copyright (c) 1999 @@ -288,7 +288,6 @@ rbus_new(parent, start, size, offset, flags) } 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) { |