From: jeremie.galarneau@efficios.com (Jérémie Galarneau)
Subject: [lttng-dev] [PATCH] Fix: lttng-live use g_free rather than free
Date: Tue, 19 Apr 2016 11:01:21 -0400 [thread overview]
Message-ID: <CA+jJMxvw0bN4Cem9S=_yFC=s1VLQGbWa3hWQfH56299ZbMSpWg@mail.gmail.com> (raw)
In-Reply-To: <1461032800-19065-1-git-send-email-mathieu.desnoyers@efficios.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 973 bytes --]
Merged in master and stable-1.3.
Thanks!
Jérémie
On Mon, Apr 18, 2016 at 10:26 PM, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> g_new0 should be paired with g_free.
>
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
> formats/lttng-live/lttng-live-plugin.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/formats/lttng-live/lttng-live-plugin.c b/formats/lttng-live/lttng-live-plugin.c
> index adb7249..bf71b2b 100644
> --- a/formats/lttng-live/lttng-live-plugin.c
> +++ b/formats/lttng-live/lttng-live-plugin.c
> @@ -307,7 +307,7 @@ int lttng_live_close_trace(struct bt_trace_descriptor *td)
> struct ctf_text_stream_pos *pos =
> container_of(td, struct ctf_text_stream_pos,
> trace_descriptor);
> - free(pos);
> + g_free(pos);
> return 0;
> }
>
> --
> 2.1.4
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
parent reply other threads:[~2016-04-19 15:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1461032800-19065-1-git-send-email-mathieu.desnoyers@efficios.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+jJMxvw0bN4Cem9S=_yFC=s1VLQGbWa3hWQfH56299ZbMSpWg@mail.gmail.com' \
--to=jeremie.galarneau@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox