GNOME Bugzilla – Bug 574258
_wrap_gst_install_plugins_sync might leak details
Last modified: 2009-03-05 12:47:07 UTC
gst/pbutils.override 129 details = g_new0(gchar*, len+1); 130 131 /* Check all items in py_details are strings */ 132 for (i = 0; i < len; i++) { 133 PyObject *py_str = PySequence_GetItem(py_details, i); 134 gchar *str; 135 136 if (!PyString_Check(py_str)) { 137 PyErr_SetString(PyExc_TypeError, "Details need to be a 138 Py_DECREF(py_str); 139 Py_DECREF(py_details); // leaks details 140 return NULL; 141 } 142 if (!(str = PyString_AsString(py_str))) { 143 Py_DECREF(py_str); 144 Py_DECREF(py_details); // leaks details 145 return NULL; 146 } 147 details[i] = g_strdup(str); 148 Py_DECREF(py_str); 149 }
commit 3077b801bdd47b5da3beb4050c8878d85df16de2 Author: Edward Hervey <bilboed@bilboed.com> Date: Thu Mar 5 13:45:07 2009 +0100 pbutils: Fix leaked GStrv. Fixes #574258