Commit c8c10a5f authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/ffmenc: Fix memleak of buf

Fixes CID1257015
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 80876320
...@@ -146,8 +146,8 @@ static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsi ...@@ -146,8 +146,8 @@ static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsi
if (need_coma) if (need_coma)
avio_w8(tmp, ','); avio_w8(tmp, ',');
avio_write(tmp, buf, strlen(buf)); avio_write(tmp, buf, strlen(buf));
av_free(buf);
} }
av_freep(&buf);
avio_w8(tmp, 0); avio_w8(tmp, 0);
write_header_chunk(pb, tmp, tag); write_header_chunk(pb, tmp, tag);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment