All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH lttng-tools v2] Fix: free previous instance of url (alloc_url) on default live url assignation
       [not found] <1481578757-27974-1-git-send-email-jonathan.rajotte-julien@efficios.com>
@ 2016-12-16 12:48 ` Jérémie Galarneau
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémie Galarneau @ 2016-12-16 12:48 UTC (permalink / raw)
  To: Jonathan Rajotte; +Cc: lttng-dev, Jeremie Galarneau

Merged in master, stable-2.9 and stable-2.8.

Thanks for the fix and thanks Phil for the review!
Jérémie

On 12 December 2016 at 16:39, Jonathan Rajotte
<jonathan.rajotte-julien@efficios.com> wrote:
> Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
> ---
>  src/bin/lttng/commands/create.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c
> index 0f7d1a4..40d2a77 100644
> --- a/src/bin/lttng/commands/create.c
> +++ b/src/bin/lttng/commands/create.c
> @@ -342,6 +342,10 @@ static int create_session(void)
>
>         /* Use default live URL if NO url is/are found. */
>         if ((opt_live_timer && !opt_url) && (opt_live_timer && !opt_data_url)) {
> +               /* Override the url */
> +               free(url);
> +               url = NULL;
> +
>                 ret = asprintf(&alloc_url, "net://127.0.0.1");
>                 if (ret < 0) {
>                         PERROR("asprintf default live URL");
> --
> 2.7.4
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH lttng-tools v2] Fix: free previous instance of url (alloc_url) on default live url assignation
@ 2016-12-12 21:39 Jonathan Rajotte
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Rajotte @ 2016-12-12 21:39 UTC (permalink / raw)
  To: lttng-dev; +Cc: jgalar

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
---
 src/bin/lttng/commands/create.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c
index 0f7d1a4..40d2a77 100644
--- a/src/bin/lttng/commands/create.c
+++ b/src/bin/lttng/commands/create.c
@@ -342,6 +342,10 @@ static int create_session(void)
 
 	/* Use default live URL if NO url is/are found. */
 	if ((opt_live_timer && !opt_url) && (opt_live_timer && !opt_data_url)) {
+		/* Override the url */
+		free(url);
+		url = NULL;
+
 		ret = asprintf(&alloc_url, "net://127.0.0.1");
 		if (ret < 0) {
 			PERROR("asprintf default live URL");
-- 
2.7.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-16 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1481578757-27974-1-git-send-email-jonathan.rajotte-julien@efficios.com>
2016-12-16 12:48 ` [PATCH lttng-tools v2] Fix: free previous instance of url (alloc_url) on default live url assignation Jérémie Galarneau
2016-12-12 21:39 Jonathan Rajotte

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.