diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-11-17 14:23:20 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-11-17 14:23:20 +0000 |
commit | a4b8cb3c55cbbaecd38b78ee7ade1732ee325ad7 (patch) | |
tree | 77558587a8720287600cb37c425c1d91dc7d7ad2 /libavformat/swf.h | |
parent | fcc995a533ddf0d892348c76244bd667949a3223 (diff) | |
download | ffmpeg-a4b8cb3c55cbbaecd38b78ee7ade1732ee325ad7.tar.gz |
Fix memleak caused by the fact that url_open_buf() allocates a context
when calling, but url_close_buf() doesn't free it. The better solution
is to not allocate it at all, init it with init_put_byte() and then
not have to close it at all. In the case where we do need to hold it
around for longer than within the function context, we allocate it with
av_alloc_put_byte() and free it with av_free() instead. Discussed in ML
thread "[PATCH] fix small memleak in rdt.c".
Originally committed as revision 15850 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.h')
0 files changed, 0 insertions, 0 deletions