소켓 통신 프로그램을 만들어서 메모리릭 체크를 하려고 valgrind를 처음 써봤습니다.
HEAP SUMMARY:
in use at exit: 0 bytes in 0 blocks
total heap usage: 167 allocs, 167 frees, 48,357 bytes allocated
All heap blocks were freed -- no leaks are possible
For counts of detected and suppressed errors, rerun with: -v
Use --track-origins=yes to see where uninitialised values come from
ERROR SUMMARY: 50 errors from 9 contexts (suppressed: 0 from 0)
다행이 메모리릭은 잘 잡혀있는데
마지막에 ERROR SUMMARY가 뭔지 찝찝하네요.
프로그램은 다양한 테스트를 해봤지만 이상없이 잘 돌아가고 있습니다.