[Bug 753852] New: gstreamer: base: Fix memory leaks when context parse fails.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 19 18:27:57 PDT 2015


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

            Bug ID: 753852
           Summary: gstreamer: base: Fix memory leaks when context parse
                    fails.
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vineeth.tm at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

In all places where g_option_context_parse is being used, when it fails, the
context and error variables are not getting freed, which will result in memory
leaks.
Along with that replacing g_error_free with g_clear_error in these files, which
is a better way to free error, as it checks if the variable is Non-NULL and
then sets it to NULL on freeing.

Making it into 3 patches for better readability, based on folders of the
files.(tools, tests, gst-libs).. If needed all these can be squashed into a
single patch.

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