Hello! I found some memory leak in my application.
OS - Centos 6.4 x86_64
vlc - VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
sample program - https://gist.github.com/twentypercentco ... 2fd3ff23e6
valgrind message:
221,840,640 bytes in 150 blocks are still reachable in loss record 3,912 of 3,913
in memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:727
1: memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:727
2: posix_memalign in /builddir/build/BUILD/valgrind-3.8.1/coregrind/m_replacemalloc/vg_replace_malloc.c:876
3: picture_NewFromResource in /usr/lib64/libvlccore.so.7.0.0
4: decoder_NewPicture in /usr/lib64/libvlccore.so.7.0.0
5: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
6: /usr/lib64/libavcodec.so.55.52.102
7: /usr/lib64/libavcodec.so.55.52.102
8: avcodec_decode_video2 in /usr/lib64/libavcodec.so.55.52.102
9: /usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
10: /usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
11: /usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
12: /usr/lib64/vlc/plugins/stream_out/libstream_out_duplicate_plugin.so
13: /usr/lib64/libvlccore.so.7.0.0
14: /usr/lib64/libvlccore.so.7.0.0
15: start_thread in /lib64/libpthread-2.12.so
16: clone in /lib64/libc-2.12.so
{
memalign[Memcheck:Leak]
Memcheck:Leak
fun:memalign
fun:posix_memalign
fun:picture_NewFromResource
fun:decoder_NewPicture
obj:/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
obj:/usr/lib64/libavcodec.so.55.52.102
obj:/usr/lib64/libavcodec.so.55.52.102
fun:avcodec_decode_video2
obj:/usr/lib64/vlc/plugins/codec/libavcodec_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_transcode_plugin.so
obj:/usr/lib64/vlc/plugins/stream_out/libstream_out_duplicate_plugin.so
obj:/usr/lib64/libvlccore.so.7.0.0
obj:/usr/lib64/libvlccore.so.7.0.0
fun:start_thread
fun:clone
}