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
I have a leak in my tests and I believe it is because the field memoryExportName isn't freed in the m3_FreeModule function:
==165799== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1
==165799== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==165799== by 0x5DC574: Read_utf8 (in /workspaces/dmit/bin/test/test)
==165799== by 0x5EBB83: ParseSection_Export (in /workspaces/dmit/bin/test/test)
==165799== by 0x5EC9C9: m3_ParseModule (in /workspaces/dmit/bin/test/test)
I believe "memory" is 7 bytes with the \0 and I don't see the free in the existing code for this field (memoryExportName).
I can submit a PR if you like.
Cheers, :)
The text was updated successfully, but these errors were encountered:
matovitch
changed the title
Missing m3_Free (i_module->memoryExportName) in m3_FreeModule
Missing m3_Free(i_module->memoryExportName) in m3_FreeModule
Feb 17, 2024
Hello,
I have a leak in my tests and I believe it is because the field memoryExportName isn't freed in the m3_FreeModule function:
==165799== 7 bytes in 1 blocks are definitely lost in loss record 1 of 1
==165799== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==165799== by 0x5DC574: Read_utf8 (in /workspaces/dmit/bin/test/test)
==165799== by 0x5EBB83: ParseSection_Export (in /workspaces/dmit/bin/test/test)
==165799== by 0x5EC9C9: m3_ParseModule (in /workspaces/dmit/bin/test/test)
(sorry I don't have the line numbers)
The export function of my module looks like this:
Export[13]:
I believe "memory" is 7 bytes with the \0 and I don't see the free in the existing code for this field (memoryExportName).
I can submit a PR if you like.
Cheers, :)
The text was updated successfully, but these errors were encountered: