[FFmpeg-cvslog] hwcontext_vulkan: fix small memory leak when unmapping

Lynne git at videolan.org
Sat Nov 13 15:50:34 EET 2021


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sat Nov 13 14:47:12 2021 +0100| [f388791ff99938396d622886e8ff760e0f398028] | committer: Lynne

hwcontext_vulkan: fix small memory leak when unmapping

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f388791ff99938396d622886e8ff760e0f398028
---

 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 {



More information about the ffmpeg-cvslog mailing list