Closed kingster closed 2 years ago
I was looking into possible mem leak and I found in OggOpusFile.cpp->OggOpusFile::WriteHeader(): comment_init() malloc p; comment_add() realloc p; comment_pad() realloc p; At last op.packet = p; But op.packet wasn't freed after this, so I suspected every time WriteHeader() was called, a new piece of mem chunk for op.packet was allocated.
Thanks @xuxin010033
This was a easy fix and help in huge memory release, since each opus file was leaking some memory.
There is one another leak in ConfigManager.cpp, for which I attempted a solve, but that leads to segfault in another place. Probably you can have a look?
Full output leak.txt