summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-29 20:04:06 +0000
committerphk <phk@FreeBSD.org>2003-07-29 20:04:06 +0000
commitf1458a17002f610078eb4f663fad197bf29ba548 (patch)
tree5fae354358bc6446b4c8681bed86cc05abaa5b5d /sys/geom/geom_ccd.c
parent082306ba31fa66f0d561e9298b27157a2406c16e (diff)
downloadFreeBSD-src-f1458a17002f610078eb4f663fad197bf29ba548.zip
FreeBSD-src-f1458a17002f610078eb4f663fad197bf29ba548.tar.gz
Fix a memory leak in CCD's mirror code.
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 51f70c3..ff951d5 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -655,12 +655,14 @@ ccdiodone(struct bio *cbp)
return;
}
g_std_done(cbp);
+ return;
}
if (mbp != NULL) {
mbp->bio_caller1 = NULL;
pbp->bio_inbed++;
if (cbp->bio_error != 0 && pbp->bio_error == 0)
pbp->bio_error = cbp->bio_error;
+ g_destroy_bio(cbp);
return;
}
g_std_done(cbp);
OpenPOWER on IntegriCloud