Fix a memory leak in CCD's mirror code.

This commit is contained in:
Poul-Henning Kamp 2003-07-29 20:04:06 +00:00
parent 0902bdbe14
commit 114ebb2f28

View File

@ -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);