diff options
author | pjd <pjd@FreeBSD.org> | 2010-06-14 21:37:25 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-06-14 21:37:25 +0000 |
commit | 4d602216301852325adc8e4c389e888b1e0ba6c0 (patch) | |
tree | 2101960fcef23fb2e51bd71d27345c8cca7e0986 | |
parent | d5bb9ec5ff6ed6fcd055598840cee79be438771e (diff) | |
download | FreeBSD-src-4d602216301852325adc8e4c389e888b1e0ba6c0.zip FreeBSD-src-4d602216301852325adc8e4c389e888b1e0ba6c0.tar.gz |
Plug memory leak.
Found by: Coverity Prevent
CID: 7056
MFC after: 3 days
-rw-r--r-- | sbin/hastd/primary.c | 1 |
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; /* |