Module: libav Branch: master Commit: 617814b4a717b38add5ccb8dd200dbb655f98f09
Author: Federico Tomassetti <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Mon Feb 23 17:55:53 2015 +0000 buffersrc: Fix resource leak on error Bug-Id: CID 1267902 CC: [email protected] Signed-off-by: Vittorio Giovara <[email protected]> --- 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; \ _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
