diff options
author | pjd <pjd@FreeBSD.org> | 2012-01-21 20:13:37 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-01-21 20:13:37 +0000 |
commit | bf37868a59efe062a9bd184cc06ae256f820dfbe (patch) | |
tree | 339aa4d691b9b54045b9d5e75868f514cb1194ac /sbin | |
parent | fc150a4b545266cc140f4994f5ee35dc631b8fbf (diff) | |
download | FreeBSD-src-bf37868a59efe062a9bd184cc06ae256f820dfbe.zip FreeBSD-src-bf37868a59efe062a9bd184cc06ae256f820dfbe.tar.gz |
Fix minor memory leak.
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/parse.y | 1 |
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); } |