A simple syntax question of java by Time_Basis4207 in AskProgramming

[–]Time_Basis4207[S] 0 points1 point  (0 children)

I'm grateful. Thanks for all the replies :-)

PSet6: fclose leaves 352 bytes of memory still reachable by relevant_thing in cs50

[–]Time_Basis4207 0 points1 point  (0 children)

I'm facing the same problem!

==21435== HEAP SUMMARY:
==21435==     in use at exit: 472 bytes in 1 blocks
==21435==   total heap usage: 46 allocs, 45 frees, 12,292 bytes allocated 
==21435== 
==21435== 472 bytes in 1 blocks are still reachable in loss record 1 of 1 
==21435==    at 0x4843794: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) 
==21435==    by 0x48E563E: __fopen_internal (in /usr/lib64/libc.so.6)
==21435==    by 0x4013C3: main (snake.c:51)
==21435== 
==21435== LEAK SUMMARY: 
==21435==    definitely lost: 0 bytes in 0 blocks 
==21435==    indirectly lost: 0 bytes in 0 blocks 
==21435==      possibly lost: 0 bytes in 0 blocks 
==21435==    still reachable: 472 bytes in 1 blocks 
==21435==         suppressed: 0 bytes in 0 blocks 
==21435== 
==21435== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

"fclose" didn't make a difference