From a6df9ce61520ad7583a90a20e82d857b8d4fb133 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 20 Apr 2015 12:17:05 +0200 Subject: [PATCH] avfilter/buffersrc: Use correct, matching deallocation function Signed-off-by: Michael Niedermayer --- libavfilter/buffersrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index c4b7af4262..bf77b88fec 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -242,7 +242,7 @@ do { \ ref_out = av_buffer_create(data, data_size, compat_unref_buffer, \ dummy_ref, (buf->perms & AV_PERM_WRITE) ? 0 : AV_BUFFER_FLAG_READONLY); \ if (!ref_out) { \ - av_freep(&dummy_ref); \ + av_buffer_unref(&dummy_ref); \ av_frame_unref(frame); \ ret = AVERROR(ENOMEM); \ goto fail; \