summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-13 14:47:12 +0100
committerLynne <dev@lynne.ee>2021-11-13 14:47:12 +0100
commitf388791ff99938396d622886e8ff760e0f398028 (patch)
tree8906c3f3180f7b6ec9ab0f2a7d42b364db194a3e /libavutil/hwcontext_vulkan.c
parent9dc544cdb461789f0d950c384464fcc893cd804c (diff)
hwcontext_vulkan: fix small memory leak when unmapping
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r--libavutil/hwcontext_vulkan.c1
1 files changed, 1 insertions, 0 deletions
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 {