Fixed 2 more memory leaks in xlhtml.c

This commit is contained in:
slidedraw 2002-04-05 00:43:44 +00:00
parent 578f23c51b
commit 9ce4becddf
2 changed files with 10 additions and 1 deletions

View File

@ -86,7 +86,7 @@ LDADD = ../cole/libcole.a
xlhtml_SOURCES = support.c xlhtml.c memwatch.c xlhtml_SOURCES = support.c xlhtml.c memwatch.c
xldump_SOURCES = xldump.c xldump_SOURCES = xldump.c
xlcdump_SOURCES = xlcdump.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 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES = CONFIG_CLEAN_FILES =

View File

@ -618,10 +618,19 @@ int main (int argc, char **argv)
if (lastUpdated) if (lastUpdated)
free(lastUpdated); free(lastUpdated);
free(str_array);
free(ws_array);
return 0; return 0;
} }
void scan_file(COLEDIRENT *cde, void *_info) void scan_file(COLEDIRENT *cde, void *_info)
{ {
U32 count = 0; U32 count = 0;