summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/suff.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/suff.c')
-rw-r--r--usr.bin/make/suff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c
index 4802f2b..b08bc10 100644
--- a/usr.bin/make/suff.c
+++ b/usr.bin/make/suff.c
@@ -454,6 +454,7 @@ Suff_ClearSuffixes(void)
{
Lst_Concat(suffClean, sufflist, LST_CONCLINK);
+ free(sufflist);
sufflist = Lst_Init();
sNum = 1;
suffNull = emptySuff;
@@ -2079,6 +2080,8 @@ sfnd_return:
Lst_Concat(slst, srcs, LST_CONCLINK);
Lst_Concat(slst, targs, LST_CONCLINK);
+ free(srcs);
+ free(targs);
}
/*-
OpenPOWER on IntegriCloud