mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Fix minor memory leak.
MFC after: 3 days
This commit is contained in:
parent
10280ca601
commit
2ce9c023fd
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue