]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hwpmc_armv7: plug memory leak
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 3 Aug 2023 14:10:26 +0000 (11:10 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 3 Aug 2023 14:13:10 +0000 (11:13 -0300)
commit9c0a2d522f3a18fc795a7dd6266d2be2aff4b084
tree55f9f40635de4ae7ddacec86c41ef93eff7f55fc
parent8bdceaecabd91ce5ed23646d91cef878681e19d6
hwpmc_armv7: plug memory leak

Free allocated per-CPU structures in the pcpu_fini and finalize methods.

While here, add debug trace entries to these methods.

Reviewed by: jkoshy, andrew
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41269
sys/dev/hwpmc/hwpmc_armv7.c