---
 avtools/avconv_hw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/avtools/avconv_hw.c b/avtools/avconv_hw.c
index 94be72330..81af54a19 100644
--- a/avtools/avconv_hw.c
+++ b/avtools/avconv_hw.c
@@ -208,6 +208,7 @@ invalid:
 fail:
     av_log(NULL, AV_LOG_ERROR,
            "Device creation failed: %d.\n", err);
+    av_buffer_unref(&device_ref);
     goto done;
 }
 
-- 
2.11.0
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to