From e0c22560d5b5d0346d798ee0115e94e6455058a8 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 4 Jan 2016 17:04:23 -0500 Subject: [PATCH] Do not use g_list_free_full MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/visitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/formats/ctf/ir/visitor.c b/formats/ctf/ir/visitor.c index 9b65ed58..704a8048 100644 --- a/formats/ctf/ir/visitor.c +++ b/formats/ctf/ir/visitor.c @@ -724,7 +724,8 @@ end: 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: -- 2.34.1