[FFmpeg-trac] #11332(avformat:closed): ffio_open_whitelist leaks memory

FFmpeg trac at avcodec.org
Fri Jun 6 19:20:06 EEST 2025


#11332: ffio_open_whitelist leaks memory
-------------------------------------+-------------------------------------
             Reporter:  oarfish      |                    Owner:  (none)
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  7.1          |               Resolution:
                                     |  needs_more_info
             Keywords:  leak         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by mkver):

 * resolution:   => needs_more_info
 * status:  new => closed

Comment:

 ffio_fdopen() attaches the URLContext to the AVIOContext, so it does not
 leak, but is kept and used after this function returns; it gets freed when
 the AVIOContext gets freed in avio_close() or avio_closep() which are the
 deallocators for AVIOContexts allocated by avio_open(), avio_open2() (and
 ffio_open_whitelist()). Given that libavformat allocated the AVIOContext
 for you, it also frees it itself, so there should be no leaks. Did you
 free the AVIOContext yourself manually? This would explain your leak.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11332#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list