Babeltrace supports glib all the way back to 2.22 and g_list_free_full
was introduced in 2.28.0 (and backported to 2.27.2).
The replacement is equivalent to the behaviour offered by a modern glib.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
g_free(name_copy);
}
if (path_tokens) {
- g_list_free_full(path_tokens, free);
+ g_list_foreach(path_tokens, (GFunc) free, NULL);
+ g_list_free(path_tokens);
}
return ret;
error: