From ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c Mon Sep 17 00:00:00 2001 From: harti Date: Fri, 17 Dec 2004 13:20:19 +0000 Subject: Remove all the cleanup functions. There is no reason to free memory just before exiting (especially given the number of memory leaks) - it just costs time. --- usr.bin/make/parse.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'usr.bin/make/parse.c') diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 4aa3313..b9c8c05 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -64,8 +64,6 @@ __FBSDID("$FreeBSD$"); * called before anything else in this module * is used. * - * Parse_End Cleanup the module - * * Parse_File Function used to parse a makefile. It must * be given the name of the file, which should * already have been opened, and a function @@ -2522,17 +2520,6 @@ Parse_Init(void) mainNode = NULL; } -void -Parse_End(void) -{ - - Lst_Destroy(&targets, NOFREE); - Lst_Destroy(&sysIncPath, Dir_Destroy); - Lst_Destroy(&parseIncPath, Dir_Destroy); - Lst_Destroy(&includes, NOFREE); /* Should be empty now */ -} - - /*- *----------------------------------------------------------------------- * Parse_MainName -- -- cgit v1.1