summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-04-24 23:41:21 +0000
committerle <le@FreeBSD.org>2004-04-24 23:41:21 +0000
commitbf0520a1622ff7555e8048e0cd6cead59b8c8e68 (patch)
treebd16486fe65edc5ee6c868a0b1197538ef1df080 /sys/dev/vinum
parent0e877d510e88aa943cfb5f7d9d442cc8592139fa (diff)
downloadFreeBSD-src-bf0520a1622ff7555e8048e0cd6cead59b8c8e68.zip
FreeBSD-src-bf0520a1622ff7555e8048e0cd6cead59b8c8e68.tar.gz
Plug a mem leak in vinum_scandisk().
Approved by: grog (mentor)
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c
index 71a46f5..e77291e 100644
--- a/sys/dev/vinum/vinumio.c
+++ b/sys/dev/vinum/vinumio.c
@@ -878,6 +878,7 @@ vinum_scandisk(char *devicename)
drive->flags |= VF_CONFIGURED; /* this drive's configuration is complete */
}
+ Free(config_line);
Free(config_text);
Free(drivelist);
vinum_conf.flags &= ~VF_READING_CONFIG; /* no longer reading from disk */
OpenPOWER on IntegriCloud