mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
Fix small resource leak (memory).
Reviewed by: gad MFC after: 1 week
This commit is contained in:
parent
ad035daf08
commit
5b412ffb6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199351
@ -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 New Issue
Block a user