[vlc-devel] small leaks

Hannes Domani ssbssa at yahoo.de
Tue Jul 7 19:21:59 CEST 2015


Hello


Following are patches for 2 small memory leaks.


But with some files I get a leak which I can't figure out.
Example file:
http://streams.videolan.org/issues/14172/load_001.avi

p_pic->format.p_palette is allocated many times here:
  1040 B * 1829 = 1902160 B
                           [calloc]
    0x00000001FD6A0000   C:\gcc\repos\vlc.git\win64\modules\.libs\libavcodec_plugin.dll
      0x00000001FD6A3288   C:\gcc\repos\vlc.git\modules\codec\avcodec\video.c:241 [lavc_CopyPicture]
                           C:\gcc\repos\vlc.git\modules\codec\avcodec\video.c:790 [DecodeVideo]
    0x00000000580E0000   C:\gcc\repos\vlc.git\win64\src\.libs\libvlccore.dll
      0x000000005810CAFF   C:\gcc\repos\vlc.git\src\input\decoder.c:938 [DecoderDecodeVideo]
      0x000000005810F31C   C:\gcc\repos\vlc.git\src\input\decoder.c:1045 [DecoderProcessVideo]
                           C:\gcc\repos\vlc.git\src\input\decoder.c:1378 [DecoderProcess]
                           C:\gcc\repos\vlc.git\src\input\decoder.c:1441 [DecoderThread]
      0x00000000581831E5   C:\gcc\repos\vlc.git\src\win32\thread.c:479 [vlc_entry]
    0x000007FEFE630000   C:\Windows\system32\msvcrt.dll
      0x000007FEFE63415E   [srand]
      0x000007FEFE636EBC   [_ftime64_s]
    0x0000000076B40000   C:\Windows\system32\kernel32.dll
      0x0000000076B559EC   [BaseThreadInitThunk]
    0x0000000076D60000   C:\Windows\SYSTEM32\ntdll.dll
      0x0000000076D8C540   [RtlUserThreadStart]


Regards
Domani Hannes



More information about the vlc-devel mailing list