* Re: [PATCH babeltrace] Do not use g_list_free_full
[not found] <1451943430-7346-1-git-send-email-jonathan.rajotte-julien@efficios.com>
@ 2016-01-04 21:42 ` Jonathan Rajotte Julien
2016-01-04 22:04 ` [PATCH babeltrace v3] " Jonathan Rajotte
[not found] ` <1451945063-9730-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2 siblings, 0 replies; 3+ messages in thread
From: Jonathan Rajotte Julien @ 2016-01-04 21:42 UTC (permalink / raw)
To: Jonathan Rajotte; +Cc: lttng-dev
On 2016-01-04 04:37 PM, Jonathan Rajotte wrote:
> Babeltrace support glibc all the way back to 2.20 and g_list_free_full
Sorry the version number here should be 2.22. Do you want a new patch ?
> exists from 2.28.0 (backported to 2.27.2) only.
>
> The replacement is the current implementation found in modern glibc.
>
> Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
> ---
> 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 9b65ed5..704a804 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:
--
Jonathan R. Julien
Efficios
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH babeltrace v3] Do not use g_list_free_full
[not found] <1451943430-7346-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2016-01-04 21:42 ` [PATCH babeltrace] Do not use g_list_free_full Jonathan Rajotte Julien
@ 2016-01-04 22:04 ` Jonathan Rajotte
[not found] ` <1451945063-9730-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2 siblings, 0 replies; 3+ messages in thread
From: Jonathan Rajotte @ 2016-01-04 22:04 UTC (permalink / raw)
To: lttng-dev
v3: we support from 2.22 not 2.28.
--
Babeltrace support glib all the way back to 2.22 and g_list_free_full
exists from 2.28.0 (backported to 2.27.2) only.
The replacement is the current implementation found in modern glib.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
---
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 9b65ed5..704a804 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.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH babeltrace v3] Do not use g_list_free_full
[not found] ` <1451945063-9730-1-git-send-email-jonathan.rajotte-julien@efficios.com>
@ 2016-01-05 21:16 ` Jérémie Galarneau
0 siblings, 0 replies; 3+ messages in thread
From: Jérémie Galarneau @ 2016-01-05 21:16 UTC (permalink / raw)
To: Jonathan Rajotte; +Cc: lttng-dev
Merged in master, thanks!
Jérémie
On Mon, Jan 4, 2016 at 5:04 PM, Jonathan Rajotte
<jonathan.rajotte-julien@efficios.com> wrote:
> v3: we support from 2.22 not 2.28.
> --
>
> Babeltrace support glib all the way back to 2.22 and g_list_free_full
> exists from 2.28.0 (backported to 2.27.2) only.
>
> The replacement is the current implementation found in modern glib.
>
> Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
> ---
> 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 9b65ed5..704a804 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.5.0
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-05 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1451943430-7346-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2016-01-04 21:42 ` [PATCH babeltrace] Do not use g_list_free_full Jonathan Rajotte Julien
2016-01-04 22:04 ` [PATCH babeltrace v3] " Jonathan Rajotte
[not found] ` <1451945063-9730-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2016-01-05 21:16 ` Jérémie Galarneau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.