diff --git a/xlhtml/xlhtml.c b/xlhtml/xlhtml.c index 4374a11..d7ee56e 100644 --- a/xlhtml/xlhtml.c +++ b/xlhtml/xlhtml.c @@ -491,11 +491,6 @@ int main (int argc, char **argv) } } - free(xf_array); - free(font_array); - free(f_cnt); - free(str_array); - free(ws_array); for (i=0; i<(int)max_worksheets; i++) { diff --git a/xlhtml/xlhtml.h b/xlhtml/xlhtml.h index 170d279..f35b25a 100644 --- a/xlhtml/xlhtml.h +++ b/xlhtml/xlhtml.h @@ -24,7 +24,7 @@ #define HARD_MAX_ROWS_95 0x3FFF /*!< Used in add_wb_array to prevent OOM */ #define HARD_MAX_COLS 256 /*!< Used in add_wb_array to prevent OOM */ -U16 HARD_MAX_ROWS = HARD_MAX_ROWS_97; +static U16 HARD_MAX_ROWS = HARD_MAX_ROWS_97; /********************************** * * Don't change anything below here...