Page MenuHomeFreeBSD

Fix a memory leak in libmemstat
Needs ReviewPublic

Authored by trix_juniper.net on Mar 11 2017, 4:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 2 2024, 4:52 AM
Unknown Object (File)
Sep 6 2024, 11:36 PM
Unknown Object (File)
Sep 6 2024, 3:51 AM
Unknown Object (File)
Sep 5 2024, 4:25 AM
Unknown Object (File)
Aug 23 2024, 5:57 AM
Unknown Object (File)
Aug 23 2024, 5:57 AM
Unknown Object (File)
Aug 23 2024, 5:28 AM
Unknown Object (File)
Aug 16 2024, 2:52 AM
Subscribers

Details

Reviewers
glebius
pluknet
Summary

memstat_malloc.c memstat_kvm_malloc
Free the buffer mts before returning.

Test Plan

Use clang's static analyzer, scan-build, to find the problem and later to show resolution.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped