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 574251 - leaks the flow name
leaks the flow name
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal normal
: 0.10.15
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-05 12:13 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2009-03-05 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2009-03-05 12:13:57 UTC
in gst/gst.override
732  	    ret = gst_flow_get_name(flow);
733  	    if (ret) {
734  		nret = g_strdup(ret);
735  	        return PyString_FromString(nret);
736  	    }

gst_flow_get_name() is returning a const, so we don't need to g_strdup() imho.
Comment 1 Edward Hervey 2009-03-05 12:24:00 UTC
commit 92f2e4d5401a1ff020f9d22263a4621fa9f57371
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Thu Mar 5 13:21:19 2009 +0100

    Fix leak in gst_flow_get_name() wrapper function. Fixes #574251
    
    PyString_FromString will make a copy of the provided string.