GNOME Bugzilla – Bug 785341
videofilter: Forgets to unmap input buffer after failing to map output buffer
Last modified: 2017-07-25 08:49:49 UTC
Created attachment 356299 [details] [review] Patch file is attached. Hi All, There is Possible memory leak in below scenario. File : gst-plugins-base/gst-libs/gst/video/gstvideofilter.c Function gst_video_filter_transform: in_frame unmap is missing . if (!gst_video_frame_map (&out_frame, &filter->out_info, outbuf, GST_MAP_WRITE | GST_VIDEO_FRAME_MAP_FLAG_NO_REF)) { goto invalid_buffer; Solution : gst_video_frame_unmap (&in_frame) should be before goto statement. ++patch is attched for possible solution. Kindly review the patch and provide your feedback.
commit 5cf883c8ed6bbecd4ceb8e62d5109d1092ba385f (HEAD -> master) Author: Satya Prakash Gupta <sp.gupta@samsung.com> Date: Mon Jul 24 19:18:49 2017 +0530 videofilter: Unmap input frame if mapping output frame failed https://bugzilla.gnome.org/show_bug.cgi?id=785341