[Libav-user] Memory Leak while using avformat_new_stream

Anshul er.anshul.maheshwari at gmail.com
Wed Jun 26 10:58:52 CEST 2013

hi friends

i found memory leak when i am using avformat_new_stream , below is 
valgrind log

==12990== 1,599 (1,592 direct, 7 indirect) bytes in 1 blocks are 
definitely lost in loss record 19 of 21
==12990==    at 0x40294EB: memalign (in 
==12990==    by 0x4A7A71C: av_mallocz (mem.c:223)
==12990==    by 0x463153D: avcodec_get_context_defaults3 (options.c:129)
==12990==    by 0x4631652: avcodec_alloc_context3 (options.c:157)
==12990==    by 0x4975548: avformat_new_stream (utils.c:3258)
==12990==    by 0x4AA4F3D: add_stream (muxing.c:32)
==12990==    by 0x4AA51E9: init (muxing.c:121)
==12990==    by 0x80487EE: main (test_app.c:52)


More information about the Libav-user mailing list