Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scan_devtree_cpu noncache free cachelist #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

heysion
Copy link

@heysion heysion commented Jun 27, 2023

porting lshw to aarch64 got memleak

Architecture:        aarch64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           2
Vendor ID:           ARM
Model:               0
Model name:          Cortex-A73
Stepping:            r1p0
CPU max MHz:         2200.0000
CPU min MHz:         400.0000
BogoMIPS:            48.00
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

valgrind --leak-check=summary lshw

==15574== HEAP SUMMARY:
==15574==     in use at exit: 64 bytes in 2 blocks
==15574==   total heap usage: 2,726,260 allocs, 2,726,258 frees, 404,418,666 bytes allocated
==15574== 
==15574== LEAK SUMMARY:
==15574==    definitely lost: 64 bytes in 2 blocks
==15574==    indirectly lost: 0 bytes in 0 blocks
==15574==      possibly lost: 0 bytes in 0 blocks
==15574==    still reachable: 0 bytes in 0 blocks
==15574==         suppressed: 0 bytes in 0 blocks
==15574== Rerun with --leak-check=full to see details of leaked memory

apply patch commit 956c8f5

==15862== 
==15862== HEAP SUMMARY:
==15862==     in use at exit: 0 bytes in 0 blocks
==15862==   total heap usage: 2,726,260 allocs, 2,726,260 frees, 404,419,056 bytes allocated
==15862== 
==15862== All heap blocks were freed -- no leaks are possible
==15862== 
==15862== For counts of detected and suppressed errors, rerun with: -v
==15862== Use --track-origins=yes to see where uninitialised values come from
==15862== ERROR SUMMARY: 21857 errors from 32 contexts (suppressed: 0 from 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant