From f388791ff99938396d622886e8ff760e0f398028 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 13 Nov 2021 14:47:12 +0100 Subject: hwcontext_vulkan: fix small memory leak when unmapping --- libavutil/hwcontext_vulkan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index e54c10156e..7c70fac30f 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -2235,6 +2235,7 @@ static void vulkan_unmap_from(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) } av_freep(&map->frame); + av_free(map); } static const struct { -- cgit v1.2.3