[Bug 784887] New: gsm: Possible Memory leak in gst_buffer_unmap

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jul 13 05:39:51 UTC 2017


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

            Bug ID: 784887
           Summary: gsm: Possible Memory leak in gst_buffer_unmap
    Classification: Platform
           Product: GStreamer
           Version: 1.12.1
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: sp.gupta at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Hello All,

There is possible memory leak in gst_buffer_unmap.

File  : gst-plugins-bad/ext/gsm/gstgsmenc.c

In function "gst_gsmenc_handle_frame" at line: 182

gstbuffer is allocated and mapped like :

  outbuf = gst_buffer_new_and_alloc (33 * sizeof (gsm_byte));
  gst_buffer_map (outbuf, &omap, GST_MAP_WRITE);

But there is no unmap of this outbuf.


Solution: There should be gst_buffer_unmap (outbuf , &omap) 
instead of   gst_buffer_unmap (buffer, &omap);

Please check 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