summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-06-14 21:37:25 +0000
committerpjd <pjd@FreeBSD.org>2010-06-14 21:37:25 +0000
commit4d602216301852325adc8e4c389e888b1e0ba6c0 (patch)
tree2101960fcef23fb2e51bd71d27345c8cca7e0986 /sbin
parentd5bb9ec5ff6ed6fcd055598840cee79be438771e (diff)
downloadFreeBSD-src-4d602216301852325adc8e4c389e888b1e0ba6c0.zip
FreeBSD-src-4d602216301852325adc8e4c389e888b1e0ba6c0.tar.gz
Plug memory leak.
Found by: Coverity Prevent CID: 7056 MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/primary.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 9f2b2c7..0985920 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -447,6 +447,7 @@ init_local(struct hast_resource *res)
primary_exit(EX_NOINPUT, "Unable to read activemap");
}
activemap_copyin(res->hr_amp, buf, mapsize);
+ free(buf);
if (res->hr_resuid != 0)
return;
/*
OpenPOWER on IntegriCloud