diff options
author | Martin Storsjö <martin@martin.st> | 2010-07-20 05:23:28 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-07-20 05:23:28 +0000 |
commit | 8b6e0aec9fb07b0d1286e3ff5d858e22d09dc83c (patch) | |
tree | d140fcde112987053c7798a42b62f9dbbc66f4b0 /libavformat | |
parent | 709c0181fdd53637dfc6f6c0618143a3cde3a072 (diff) | |
download | ffmpeg-8b6e0aec9fb07b0d1286e3ff5d858e22d09dc83c.tar.gz |
movenc: Free the buffer returned by url_close_dyn_buffer, regardless of the size
This fixes a leak introduced in rev 23942, since we write padding to the
buffer unconditionally.
Originally committed as revision 24342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index c0efa3a96d..aed748b37e 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1630,8 +1630,8 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVMuxContext *mov, put_be32(pb, size+8); put_tag(pb, "udta"); put_buffer(pb, buf, size); - av_free(buf); } + av_free(buf); return 0; } |