GNOME Bugzilla – Bug 784741
libswscale: Memory leak in gst_video_frame_map.
Last modified: 2017-07-17 12:37:31 UTC
libswscale: Memory leak in gst_video_frame_map. gst-libav-1.12.1/gst-libav-1.12.1/ext/libswscale In function "gst_ffmpegscale_transform" at line: 587 gst_video_frame_map at line 596: if "gst_video_frame_map" failed then there is no unmap of in_frame.So I think it will cause memory leak. Solution: if gst_video_frame_map is failed then there should gst_video_frame_unmap (&in_frame); Please consider it.
Do you want to provide a patch? Note that swscale is deprecated and not even built anymore
Yes.. Will it be accepted?
Sure, why not. But the code might completely disappear soonish
Created attachment 355734 [details] [review] libswscale: Memory leak in gst_video_frame_map. Hi All , Please check attached patch and provide your feedback.
commit 7c304c0c1ed37cac2001aa9ecd7ebd6a8715a042 (HEAD -> master) Author: Satya Prakash Gupta <sp.gupta@samsung.com> Date: Tue Jul 11 13:45:35 2017 +0530 libswscale: Memory leak in gst_video_frame_map https://bugzilla.gnome.org/show_bug.cgi?id=784741