Fix minor memory leak.
MFC after: 3 days
This commit is contained in:
parent
10280ca601
commit
2ce9c023fd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user