From f7dab93d7ef7e6455ae83206f5e109dba7e69ac8 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Mon, 4 Feb 2019 10:33:33 -0500 Subject: [PATCH] UPDATED: Fix main() when token pools disabled --- Sources/multimarkdown/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/multimarkdown/main.c b/Sources/multimarkdown/main.c index 026dabf..1c27464 100644 --- a/Sources/multimarkdown/main.c +++ b/Sources/multimarkdown/main.c @@ -471,7 +471,9 @@ int main(int argc, char ** argv) { free(output_filename); // Decrement counter and drain +#ifdef kUseObjectPool token_pool_drain(); +#endif } } else { if (a_file->count) { @@ -594,10 +596,10 @@ int main(int argc, char ** argv) { exit: +#ifdef kUseObjectPool // Decrement counter and clean up token pool token_pool_drain(); -#ifdef kUseObjectPool token_pool_free(); #endif -- 2.50.1