Skip to content

Commit de9567c

Browse files
committed
Print malloc stats when finalizing YARA and using jemalloc.
1 parent 23fa049 commit de9567c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libyara/libyara.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ YR_API int yr_finalize(void)
227227
FAIL_ON_ERROR(yr_heap_free());
228228

229229
#if defined(JEMALLOC)
230+
malloc_stats_print(NULL, NULL, NULL);
230231
mallctl("prof.dump", NULL, NULL, NULL, 0);
231232
#endif
232233

0 commit comments

Comments
 (0)