summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/str.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-17 13:20:19 +0000
committerharti <harti@FreeBSD.org>2004-12-17 13:20:19 +0000
commitebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c (patch)
tree6eb76b042b6e1af4a0e99fe9fd18b8086748cbe0 /usr.bin/make/str.c
parentfbe42b3f98a3d07f38177307459c6bfaeca73aef (diff)
downloadFreeBSD-src-ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c.zip
FreeBSD-src-ebeffbcdeb1dbe7f6784d8aa322bbba797e7b07c.tar.gz
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.
Diffstat (limited to 'usr.bin/make/str.c')
-rw-r--r--usr.bin/make/str.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c
index 4cbd488..2979906 100644
--- a/usr.bin/make/str.c
+++ b/usr.bin/make/str.c
@@ -60,24 +60,6 @@ str_init(void)
argv[0] = Var_Value(".MAKE", VAR_GLOBAL, &p1);
}
-
-/*
- * str_end --
- * Cleanup the strings package
- *
- */
-void
-str_end(void)
-{
- if (argv) {
- if (argv[0])
- free(argv[0]);
- free(argv);
- }
- if (buffer)
- free(buffer);
-}
-
/*-
* str_concat --
* concatenate the two strings, inserting a space or slash between them.
OpenPOWER on IntegriCloud