Skip to content

Commit

Permalink
Added calls for 'USE_MIMALLOC = 1':
Browse files Browse the repository at this point in the history
  *) 'mimalloc_init()'; show statistics in 'general debug' mode.
  *) 'mimalloc_exit()'; does nothing yet.
  • Loading branch information
gvanem committed Mar 2, 2024
1 parent 8cde445 commit dce7c82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -3128,6 +3128,10 @@ static void modeS_exit (void)
Modes.log = NULL;
}

#if defined(USE_MIMALLOC)
mimalloc_exit();
#endif

#if defined(_DEBUG)
crtdbug_exit();
#endif
Expand Down Expand Up @@ -3568,6 +3572,10 @@ int main (int argc, char **argv)
crtdbug_init();
#endif

#if defined(USE_MIMALLOC)
mimalloc_init();
#endif

modeS_init_config(); /* Set sane defaults */

if (!parse_cmd_line(argc, argv))
Expand Down

0 comments on commit dce7c82

Please sign in to comment.