diff options
author | fjoe <fjoe@FreeBSD.org> | 2004-09-16 15:28:48 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2004-09-16 15:28:48 +0000 |
commit | 76d2723d976bb6970b056a9d0d8e6c2a078b64f0 (patch) | |
tree | e35cda06677ae378e202b47b4d39ed9ca246b1b9 /sys/geom/nop/g_nop.c | |
parent | 3626bc47063706d06cfe1525f19be8102ed026a7 (diff) | |
download | FreeBSD-src-76d2723d976bb6970b056a9d0d8e6c2a078b64f0.zip FreeBSD-src-76d2723d976bb6970b056a9d0d8e6c2a078b64f0.tar.gz |
g_nop_create: destroy newly created provider in case of errors.
Diffstat (limited to 'sys/geom/nop/g_nop.c')
-rw-r--r-- | sys/geom/nop/g_nop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c index f9ac41b..1a2cb3b 100644 --- a/sys/geom/nop/g_nop.c +++ b/sys/geom/nop/g_nop.c @@ -213,7 +213,7 @@ fail: g_destroy_consumer(cp); } if (newpp != NULL) - g_destroy_provider(pp); + g_destroy_provider(newpp); if (gp != NULL) { if (gp->softc != NULL) g_free(gp->softc); |