diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c index 77159c6f15d7..f1bd2645aa22 100644 --- a/usr.bin/make/var.c +++ b/usr.bin/make/var.c @@ -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; }