From 9ce4becddf415c69df235f6c0715e43fe13f7aae Mon Sep 17 00:00:00 2001 From: slidedraw Date: Fri, 5 Apr 2002 00:43:44 +0000 Subject: [PATCH] Fixed 2 more memory leaks in xlhtml.c --- xlhtml/Makefile.in | 2 +- xlhtml/xlhtml.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/xlhtml/Makefile.in b/xlhtml/Makefile.in index d702d79..242c2d5 100644 --- a/xlhtml/Makefile.in +++ b/xlhtml/Makefile.in @@ -86,7 +86,7 @@ LDADD = ../cole/libcole.a xlhtml_SOURCES = support.c xlhtml.c memwatch.c xldump_SOURCES = xldump.c xlcdump_SOURCES = xlcdump.c -AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith +AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith -DMEMWATCH mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = diff --git a/xlhtml/xlhtml.c b/xlhtml/xlhtml.c index e886a7f..9aa2a7a 100644 --- a/xlhtml/xlhtml.c +++ b/xlhtml/xlhtml.c @@ -617,11 +617,20 @@ int main (int argc, char **argv) free(title); if (lastUpdated) free(lastUpdated); + + free(str_array); + free(ws_array); return 0; } + + + + + + void scan_file(COLEDIRENT *cde, void *_info) { U32 count = 0;