GNOME Bugzilla – Bug 734344
aiffparse: pointers not unreferred
Last modified: 2014-09-29 05:30:29 UTC
Created attachment 282646 [details] [review] two pointers not freed in the GST_EVENT_TAG case In gst-plugins-bad/tests/check/elements: aiffparse.c file to pointers were not unreferred; g_free (tags); gst_tag_list_free (aiff_tags);
Review of attachment 282646 [details] [review]: How can these memory leaks be made visible? Running the unit test in valgrind with "make elements/aiffparse.valgrind" does not show any leaks. ::: tests/check/elements/aiffparse.c @@ +123,2 @@ have_tags = TRUE; + g_free (tags); This is a static array that does not need to be freed @@ +123,3 @@ have_tags = TRUE; + g_free (tags); + gst_tag_list_free (aiff_tags); the tags returned by gst_event_parse_tags() is not owned by the caller (see the transfer none annotation). It's only valid as long as the event is valid, and the caller is not supposed to free them