root@ing09p:/usr/src/ffmpeg# valgrind --leak-check=full --show-reachable=yes ./ffmpeg_g -i ../tmp/toto.flv ==23903== Memcheck, a memory error detector. ==23903== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==23903== Using LibVEX rev 1658, a library for dynamic binary translation. ==23903== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==23903== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework. ==23903== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==23903== For more details, rerun with: -v ==23903== FFmpeg version SVN-r12176, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-shared --disable-ffserver --disable-ffplay --enable-memalign-hack libavutil version: 49.6.0 libavcodec version: 51.50.1 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Feb 25 2008 14:00:21, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4) Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12) Input #0, flv, from '../tmp/toto.flv': Duration: 00:01:06.4, start: 0.000000, bitrate: 32 kb/s Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 29.92 tb(r) Stream #0.1: Audio: mp3, 22050 Hz, stereo, 32 kb/s Must supply at least one output file ==23903== ==23903== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1) ==23903== malloc/free: in use at exit: 122,107 bytes in 114 blocks. ==23903== malloc/free: 384 allocs, 270 frees, 1,365,629 bytes allocated. ==23903== For counts of detected errors, rerun with: -v ==23903== searching for pointers to 114 not-freed blocks. ==23903== checked 1,278,608 bytes. ==23903== ==23903== 57 bytes in 1 blocks are still reachable in loss record 1 of 3 ==23903== at 0x4021620: malloc (vg_replace_malloc.c:149) ==23903== by 0x40216AA: realloc (vg_replace_malloc.c:306) ==23903== by 0x404EDB0: av_add_index_entry (in /usr/local/lib/libavformat.so.52.7.0) ==23903== ==23903== ==23903== 5,124 bytes in 53 blocks are still reachable in loss record 2 of 3 ==23903== at 0x4020820: memalign (vg_replace_malloc.c:332) ==23903== by 0x4604CB6: av_mallocz (in /usr/local/lib/libavutil.so.49.6.0) ==23903== ==23903== ==23903== 116,926 bytes in 60 blocks are still reachable in loss record 3 of 3 ==23903== at 0x4020820: memalign (vg_replace_malloc.c:332) ==23903== by 0x4604BD0: av_malloc (in /usr/local/lib/libavutil.so.49.6.0) ==23903== by 0x804AD40: (within /usr/src/ffmpeg/ffmpeg_g) ==23903== ==23903== LEAK SUMMARY: ==23903== definitely lost: 0 bytes in 0 blocks. ==23903== possibly lost: 0 bytes in 0 blocks. ==23903== still reachable: 122,107 bytes in 114 blocks. ==23903== suppressed: 0 bytes in 0 blocks.