Fix minor memory leak.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2012-01-21 20:13:37 +00:00
parent 10280ca601
commit 2ce9c023fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230436

View File

@ -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);
}