Skip to contentSkip to conversation

Fix: lttng-live use g_free rather than free

PATCH Jérémie Galarneau 1 participant 1 message Apr 19, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Merged in master and stable-1.3.

Thanks!
Jérémie

Quoted 23 lines · Mathieu Desnoyers

g_new0 should be paired with g_free.

---
 formats/lttng-live/lttng-live-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
formats/lttng-live/lttng-live-plugin.c +1 -2
index adb7249..bf71b2b 100644
@@ -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

Signature · 7 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev