[Bug 710881] New: memory leaks in hlsdemux

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Oct 25 16:53:58 CEST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=710881
  GStreamer | gst-plugins-bad | 1.2.0

           Summary: memory leaks in hlsdemux
    Classification: Platform
           Product: GStreamer
           Version: 1.2.0
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: bugzilla at ashley-family.net
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


During normal operation hlsdemux is leaking memory. On the embedded device that
I am developing for, this causes gstreamer to die after about 15 minutes of
1.5mbps video. Checking with valgrind on a Linux desktop I can see a "possibly
lost" of several MB of memory that it is allocated in hlsdemux.

The problem is that gst_hls_demux_get_next_fragment function calls
gst_fragment_get_buffer which increments the reference count on the buffer but
gst_hls_demux_get_next_fragment never calls unref on the buffer. This means
that the reference count for each downloaded fragment never gets to zero and so
its memory is never released.

I will attach a patch (against 1.2.0) that fixes this, plus two other very
minor leaks that I've found. I have also checked git head and the bug is
present there as well.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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