Plug a memory leak.
This commit is contained in:
parent
2d3d282892
commit
db397f6ffe
@ -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…
x
Reference in New Issue
Block a user