After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775752 - monoscope: Leaks allocation query
monoscope: Leaks allocation query
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.9.1
Other Linux
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-07 11:59 UTC by Garima
Modified: 2016-12-07 12:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Unreferencing the query in gstmonoscope (702 bytes, patch)
2016-12-07 11:59 UTC, Garima
committed Details | Review

Description Garima 2016-12-07 11:59:22 UTC
Created attachment 341538 [details] [review]
Unreferencing the query in gstmonoscope

In gst/monoscope/gstmonoscope.c
Function: gst_monoscope_src_negotiate
 
local variable 'query' gets allocated memory at line:262 but not freed.

Added gst_query_unref (query) to avoid the memory leak.
Comment 1 Sebastian Dröge (slomo) 2016-12-07 12:21:15 UTC
commit c3cdae4d6e66d9d04c2a26d3162ef2a64f10aa0c
Author: Garima Gaur <garima.g@samsung.com>
Date:   Wed Dec 7 17:22:22 2016 +0530

    monoscope: Unref allocation query after finished with it
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775752