You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilers generally leaks memory, but here simple hello world program is leaking a lot of memory.
==24716== Memcheck, a memory error detector
==24716== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24716== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==24716== Command: ./Cosy hw.cosy
==24716==
Hello, Cosy!!!
==24716==
==24716== HEAP SUMMARY:
==24716== in use at exit: 1,132,411 bytes in 743 blocks
==24716== total heap usage: 783 allocs, 40 frees, 1,215,053 bytes allocated
==24716==
==24716== LEAK SUMMARY:
==24716== definitely lost: 4,259 bytes in 116 blocks
==24716== indirectly lost: 0 bytes in 0 blocks
==24716== possibly lost: 1,069,064 bytes in 479 blocks
==24716== still reachable: 59,088 bytes in 148 blocks
==24716== suppressed: 0 bytes in 0 blocks
==24716== Rerun with --leak-check=full to see details of leaked memory
==24716==
==24716== For counts of detected and suppressed errors, rerun with: -v
==24716== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
What is your view on this?
The text was updated successfully, but these errors were encountered:
Thank you for bringing this topic to my attention. I haven't considered memory leaks at all and have done no investigations into reducing leaks. I'll definitely look into what's leaking memory in the future and will keep this issue open as a reminder to do so.
Compilers generally leaks memory, but here simple hello world program is leaking a lot of memory.
What is your view on this?
The text was updated successfully, but these errors were encountered: