mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r199351:
Fix small resource leak (memory). Reviewed by: gad
This commit is contained in:
parent
a37772e8b4
commit
c8cfdb0768
1 changed files with 1 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ findvar(char *p, int user, char **header)
|
|||
errx(1, "malloc failed");
|
||||
snprintf(realfmt, rflen, "%s=%s", v->alias, hp);
|
||||
parsefmt(realfmt, user);
|
||||
free(realfmt);
|
||||
}
|
||||
return ((VAR *)NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue