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
When using a model to label some text, valgrind gave me:
==5332== HEAP SUMMARY:
==5332== in use at exit: 472 bytes in 1 blocks
==5332== total heap usage: 602,017 allocs, 602,016 frees, 1,352,158,567 bytes allocated
==5332==
==5332== 472 bytes in 1 blocks are still reachable in loss record 1 of 1
==5332== at 0x483B7F3: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==5332== by 0x4A6AAAD: __fopen_internal (iofopen.c:65)
==5332== by 0x4A6AAAD: fopen@@GLIBC_2.2.5 (iofopen.c:86)
==5332== by 0x10A7C8: main (in /home/ans/Downloads/postagger/c/wapiti)
==5332==
==5332== LEAK SUMMARY:
==5332== definitely lost: 0 bytes in 0 blocks
==5332== indirectly lost: 0 bytes in 0 blocks
==5332== possibly lost: 0 bytes in 0 blocks
==5332== still reachable: 472 bytes in 1 blocks
==5332== suppressed: 0 bytes in 0 blocks
When using a model to label some text, valgrind gave me:
It seems like this file handle is not closed:
Wapiti/src/wapiti.c
Line 195 in 569fbe5
A simple
fclose(file);
after the following line should suffice:Wapiti/src/wapiti.c
Line 198 in 569fbe5
Cheers!
The text was updated successfully, but these errors were encountered: