[Libav-user] Closing codec properly after an audio decoding

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Aug 29 18:44:46 CEST 2015


Polochon Street <polochonstreet at ...> writes:

> Indirect leak of 8686 byte(s) in 2 object(s) allocated from:
>      #0 0x7f7877199386 in __interceptor_posix_memalign 
> /build/gcc-multilib/src/gcc-5.2.0/libsanitizer/asan/asan_malloc_linux.cc:105
>      #1 0x7f78767c743f in av_malloc (/usr/lib/libavutil.so.54+0x2343f)
> 
> Maybe I should open another thread for this one? Now that we've seen 
> that the leak does not come from the codec closing, do you have a clue 
> where I could search?

First step (that is practically always sufficient) 
is to find out where exactly (!) the memory was 
allocated: We all know that it was inside mem.c 
but the important question is what called 
av_malloc().
Either use a static binary or use 
--disable-stripping for a useful debug build.

Carl Eugen



More information about the Libav-user mailing list