From: Fletcher T. Penney Date: Mon, 4 Feb 2019 15:33:33 +0000 (-0500) Subject: UPDATED: Fix main() when token pools disabled X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7dab93d7ef7e6455ae83206f5e109dba7e69ac8;p=multimarkdown UPDATED: Fix main() when token pools disabled --- 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