g_string_free(.., FALSE) gives us ownership of the string already, no need to duplicate that again with g_strdup(), and doing so will leak the string returned by g_string_free() here. Caught by compiler warnings in newer GLib versions. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4273>