diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 14:30:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-18 14:30:15 +0100 |
commit | c8c10a5fc753af376eaca2c7d5b3cc5a4375f8ac (patch) | |
tree | 17100014b9e2321c1d4d2223dca8169af10464b4 /libavformat/ffmenc.c | |
parent | 8087632027d755cd32ccc9e91ea025e276197055 (diff) | |
download | ffmpeg-c8c10a5fc753af376eaca2c7d5b3cc5a4375f8ac.tar.gz |
avformat/ffmenc: Fix memleak of buf
Fixes CID1257015
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ffmenc.c')
-rw-r--r-- | libavformat/ffmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index e6d1a31dd3..cacf0d77d9 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -146,8 +146,8 @@ static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsi if (need_coma) avio_w8(tmp, ','); avio_write(tmp, buf, strlen(buf)); - av_free(buf); } + av_freep(&buf); avio_w8(tmp, 0); write_header_chunk(pb, tmp, tag); return 0; |