[FFmpeg-cvslog] buffersrc: Fix resource leak on error
Federico Tomassetti
git at videolan.org
Mon Apr 20 12:45:49 CEST 2015
ffmpeg | branch: master | Federico Tomassetti <federico at tomassetti.me> | Mon Feb 23 17:55:53 2015 +0000| [617814b4a717b38add5ccb8dd200dbb655f98f09] | committer: Vittorio Giovara
buffersrc: Fix resource leak on error
Bug-Id: CID 1267902
CC: libav-stable at libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=617814b4a717b38add5ccb8dd200dbb655f98f09
---
libavfilter/buffersrc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 00e28f8..f768063 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -195,6 +195,7 @@ do { \
ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \
dummy_ref, 0); \
if (!ref_out) { \
+ av_freep(&dummy_ref); \
av_frame_unref(frame); \
ret = AVERROR(ENOMEM); \
goto fail; \
More information about the ffmpeg-cvslog
mailing list