#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
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".