[Bug 788245] New: h263enc: fix caps leak in error code path

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 27 14:23:05 UTC 2017


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

            Bug ID: 788245
           Summary: h263enc: fix caps leak in error code path
    Classification: Platform
           Product: GStreamer
           Version: 1.13.x
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-omx
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: p.srinivas at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 360538
  --> https://bugzilla.gnome.org/attachment.cgi?id=360538&action=edit
patch file attached

Hi,

In gst_omx_h263_enc_get_caps() , in default switch case,  caps unref is missed.
This lead to memory leak.

default:
        g_assert_not_reached ();
        return NULL;


sol:

gst_caps_unref (caps); added.

Please review and share 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