aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-01-21 20:13:37 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-01-21 20:13:37 +0000
commit2ce9c023fd3b68706cce348f53cd40abb21cbbb0 (patch)
tree339aa4d691b9b54045b9d5e75868f514cb1194ac /sbin
parent10280ca6015d2900751ff72a1da375e3db6b5f35 (diff)
downloadsrc-2ce9c023fd3b68706cce348f53cd40abb21cbbb0.tar.gz
src-2ce9c023fd3b68706cce348f53cd40abb21cbbb0.zip
Fix minor memory leak.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=230436
Diffstat (limited to 'sbin')
-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 b90ef5188574..eefd591dd455 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);
}