mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Plug a memory leak.
This commit is contained in:
parent
2d3d282892
commit
db397f6ffe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138343
@ -556,6 +556,7 @@ Var_Value(char *name, GNode *ctxt, char **frp)
|
||||
|
||||
if (v->flags & VAR_FROM_ENV) {
|
||||
Buf_Destroy(v->val, FALSE);
|
||||
free(v->name);
|
||||
free(v);
|
||||
*frp = p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user