diff options
author | sos <sos@FreeBSD.org> | 2004-01-18 10:50:40 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-01-18 10:50:40 +0000 |
commit | 523bdbcc21b13b6c036d93da5f5ff3ca8810675a (patch) | |
tree | 45a7f90939567d229806263b1c1749f66d92239e /sys/dev/ata/ata-raid.c | |
parent | 06e5503ed1af4178cf231245d64f40244b92b43d (diff) | |
download | FreeBSD-src-523bdbcc21b13b6c036d93da5f5ff3ca8810675a.zip FreeBSD-src-523bdbcc21b13b6c036d93da5f5ff3ca8810675a.tar.gz |
Add missing free's.
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index 4ca8b2c..5d86886 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -1308,10 +1308,12 @@ ar_highpoint_write_conf(struct ar_softc *rdp) sizeof(struct highpoint_raid_conf), (caddr_t)config, AR_WRITE)) { printf("ar%d: Highpoint write conf failed\n", rdp->lun); + free(config, M_AR); return -1; } } } + free(config, M_AR); return 0; } @@ -1603,10 +1605,12 @@ ar_promise_write_conf(struct ar_softc *rdp) (caddr_t)config, AR_WRITE)) { printf("ar%d: %s write conf failed\n", rdp->lun, local ? "FreeBSD" : "Promise"); + free(config, M_AR); return -1; } } } + free(config, M_AR); return 0; } |