summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/parse.y
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-01-21 20:13:37 +0000
committerpjd <pjd@FreeBSD.org>2012-01-21 20:13:37 +0000
commitbf37868a59efe062a9bd184cc06ae256f820dfbe (patch)
tree339aa4d691b9b54045b9d5e75868f514cb1194ac /sbin/hastd/parse.y
parentfc150a4b545266cc140f4994f5ee35dc631b8fbf (diff)
downloadFreeBSD-src-bf37868a59efe062a9bd184cc06ae256f820dfbe.zip
FreeBSD-src-bf37868a59efe062a9bd184cc06ae256f820dfbe.tar.gz
Fix minor memory leak.
MFC after: 3 days
Diffstat (limited to 'sbin/hastd/parse.y')
-rw-r--r--sbin/hastd/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/hastd/parse.y b/sbin/hastd/parse.y
index b90ef51..eefd591 100644
--- a/sbin/hastd/parse.y
+++ b/sbin/hastd/parse.y
@@ -812,6 +812,7 @@ resource_start: STR
sizeof(curres->hr_name)) >=
sizeof(curres->hr_name)) {
pjdlog_error("Resource name is too long.");
+ free(curres);
free($1);
return (1);
}
OpenPOWER on IntegriCloud