[FFmpeg-trac] #2716(avformat:new): Memory leak at avformat_new_stream
FFmpeg
trac at avcodec.org
Thu Jun 27 05:54:27 CEST 2013
#2716: Memory leak at avformat_new_stream
-------------------------------------+-------------------------------------
Reporter: | Owner:
er.anshul.maheshwari@… | Status: new
Type: defect | Component: avformat
Priority: normal | Resolution:
Version: git-master | Blocked By:
Keywords: memory leak | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by er.anshul.maheshwari@…):
I got exactly where is the leak of 7 byte
In my case program counter never reach at the following position
#0 av_freep (arg=0x90c11d0) at libavutil/mem.c:219
#1 0x08878aac in av_opt_free (obj=0x90c0c20) at libavutil/opt.c:1216
#2 0x08595830 in avcodec_close (avctx=0x90c0880) at
libavcodec/utils.c:2382
#3 0x0804c330 in close_video (oc=0x90c0020, st=0x90c0620) at muxing.c:375
#4 0x0804c864 in main (argc=2, argv=0xbfffed94) at muxing.c:496
since it never full fill the below condition in file libavcodec/utils.c
if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)
av_opt_free(avctx->priv_data);
in my case avctx->codec is NULL
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2716#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list