==1951== Memcheck, a memory error detector
==1951== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1951== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==1951== Command: ./test.out
==1951== 
==1951== 
==1951== HEAP SUMMARY:
==1951==     in use at exit: 472 bytes in 1 blocks
==1951==   total heap usage: 6 allocs, 5 frees, 77,323 bytes allocated
==1951== 
==1951== LEAK SUMMARY:
==1951==    definitely lost: 0 bytes in 0 blocks
==1951==    indirectly lost: 0 bytes in 0 blocks
==1951==      possibly lost: 0 bytes in 0 blocks
==1951==    still reachable: 472 bytes in 1 blocks
==1951==         suppressed: 0 bytes in 0 blocks
==1951== Rerun with --leak-check=full to see details of leaked memory
==1951== 
==1951== For lists of detected and suppressed errors, rerun with: -s
==1951== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Вопрос: это linux «лениво» освобождает память, или программист я чего-то не освободил?
Ответ: память теоретически может быть освобождена, но не освобождена. Т.е. программа не освобождает память, а оставляет это ос.



