[Bug 788500] New: [libav] [Memory Leak] Memory not freed in failure case in function parse_vtrk

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 4 09:23:42 UTC 2017


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

            Bug ID: 788500
           Summary: [libav] [Memory Leak] Memory not freed in failure case
                    in function  parse_vtrk
    Classification: Platform
           Product: GStreamer
           Version: 1.12.3
                OS: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gst-libav
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: kr.ashish at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Possible memory leak is as below:-
File: 4xm.c : Line No. 117
Function: static int parse_vtrk(AVFormatContext *s,
                      FourxmDemuxContext *fourxm, uint8_t *buf, int size,
                      int left)

...
st = avformat_new_stream(s, NULL);

...

st not freed in case of failure i.e.

return AVERROR(ENOMEM);


Solution:-

av_free(st);

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