diff options
author | phk <phk@FreeBSD.org> | 2003-07-29 20:04:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-29 20:04:06 +0000 |
commit | f1458a17002f610078eb4f663fad197bf29ba548 (patch) | |
tree | 5fae354358bc6446b4c8681bed86cc05abaa5b5d /sys/geom | |
parent | 082306ba31fa66f0d561e9298b27157a2406c16e (diff) | |
download | FreeBSD-src-f1458a17002f610078eb4f663fad197bf29ba548.zip FreeBSD-src-f1458a17002f610078eb4f663fad197bf29ba548.tar.gz |
Fix a memory leak in CCD's mirror code.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_ccd.c | 2 |
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); |