[FFmpeg-cvslog] g2meet: do not leak buffers
Kostya Shishkov
git at videolan.org
Wed Jun 12 12:16:25 CEST 2013
ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Tue Jun 11 19:09:38 2013 +0200| [7dfc3381dd039233026cbba5f3ca3d76e28be860] | committer: Kostya Shishkov
g2meet: do not leak buffers
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7dfc3381dd039233026cbba5f3ca3d76e28be860
---
libavcodec/g2meet.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/g2meet.c b/libavcodec/g2meet.c
index f7a8501..43888dc 100644
--- a/libavcodec/g2meet.c
+++ b/libavcodec/g2meet.c
@@ -455,6 +455,8 @@ static int g2m_init_buffers(G2MContext *c)
aligned_height = FFALIGN(c->tile_height, 16);
av_free(c->synth_tile);
av_free(c->jpeg_tile);
+ av_free(c->kempf_buf);
+ av_free(c->kempf_flags);
c->synth_tile = av_mallocz(c->tile_stride * aligned_height);
c->jpeg_tile = av_mallocz(c->tile_stride * aligned_height);
c->kempf_buf = av_mallocz((c->tile_width + 1) * aligned_height
More information about the ffmpeg-cvslog
mailing list