1
0
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:
Hartmut Brandt 2004-12-03 12:07:03 +00:00
parent 2d3d282892
commit db397f6ffe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138343

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