GNOME Bugzilla – Bug 785219
MEMORY_LEAK in function gst_harness_element_ref
Last modified: 2017-07-21 10:26:18 UTC
Dynamic memory referenced by '__p' was allocated at gstharness.c:452 by calling function 'g_malloc0_n', but not freed if g_object_set_data_full fails due to unsatisfied expression check. File:gstharness.c Line no. 452 data = g_new0 (guint, 1); *data = 1; g_object_set_data_full (G_OBJECT (h->element), HARNESS_REF, data, g_free); File:gobject.c g_object_set_data_full (GObject *object, const gchar *key, gpointer data, GDestroyNotify destroy) { g_return_if_fail (G_IS_OBJECT (object)); //memory leak if returns from here g_return_if_fail (key != NULL); //memory leak if returns from here
These are programming errors, and if that happens everything is in an inconsistent state anyway. Leaking some memory is not going to make that worse. You'll find lots of other cases where memory is leaked if any of these assertions are failing.