Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): fix memory leak in Var_Undef (since 20...
details: https://anonhg.NetBSD.org/src/rev/e19946bd129b
branches: trunk
changeset: 958095:e19946bd129b
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Dec 23 13:11:27 2020 +0000
description:
make(1): fix memory leak in Var_Undef (since 2020-12-22)
diffstat:
usr.bin/make/var.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 8876d19fffef -r e19946bd129b usr.bin/make/var.c
--- a/usr.bin/make/var.c Wed Dec 23 11:05:08 2020 +0000
+++ b/usr.bin/make/var.c Wed Dec 23 13:11:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.762 2020/12/22 20:10:21 rillig Exp $ */
+/* $NetBSD: var.c,v 1.763 2020/12/23 13:11:27 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -131,7 +131,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.762 2020/12/22 20:10:21 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.763 2020/12/23 13:11:27 rillig Exp $");
typedef enum VarFlags {
VAR_NONE = 0,
@@ -547,6 +547,7 @@
}
Words_Free(varnames);
+ free(expanded);
}
static Boolean
Home |
Main Index |
Thread Index |
Old Index