Plug a memory leak.

This commit is contained in:
Hartmut Brandt 2004-12-03 12:07:03 +00:00
parent 2d3d282892
commit db397f6ffe

View File

@ -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;
}