[Bug 785341] New: Possible Memory leak in gstvideofilter.c

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 24 13:49:50 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=785341

            Bug ID: 785341
           Summary: Possible Memory leak in gstvideofilter.c
    Classification: Platform
           Product: GStreamer
           Version: 1.12.2
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: sp.gupta at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 356299
  --> https://bugzilla.gnome.org/attachment.cgi?id=356299&action=edit
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list