diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 32db1b872440..9f30c1f6d24f 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -4656,6 +4656,9 @@ pmc_cleanup(void) if (md->pmd_pcpu_fini) md->pmd_pcpu_fini(cpu); } + + pmc_md_finalize(md); + free(md, M_PMC); md = NULL; pmc_restore_cpu_binding(&pb);