[Bug 788481] New: libav : Fix for memory leak in function gst_ffmpegdata_open if successive memory allocations fail
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Oct 3 17:05:22 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788481
Bug ID: 788481
Summary: libav : Fix for memory leak in function
gst_ffmpegdata_open if successive memory allocations
fail
Classification: Platform
Product: GStreamer
Version: 1.12.3
OS: All
Status: NEW
Severity: normal
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: ---
Created attachment 360848
--> https://bugzilla.gnome.org/attachment.cgi?id=360848&action=edit
patch to fix the memory leak.
Hi
In function gst_ffmpegdata_open
info = g_new0 (GstProtocolInfo, 1);
not freed in case of
return -EINVAL;
and
return -ENOMEM;
Solution : g_free(info);
Attached the patch for the same.
Please review and share the 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