mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
cmd_pmc_stat allocated the event descriptor with malloc and then set only some of its fields, so the rest held whatever was on the heap. Use calloc() instead. Reviewed by: mhorne MFC after: 3 days Sponsored by: AMD Signed-off-by: Andre Silva <[email protected]> Differential Revision: https://reviews.freebsd.org/D59364