Correct an oversight: call the MD finalize hook at module unload
time.
This commit is contained in:
parent
edfea6b4ad
commit
bc4f0ade98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user