mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a memory leak in CCD's mirror code.
This commit is contained in:
parent
0902bdbe14
commit
114ebb2f28
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue