fix leak of event class
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 14 Nov 2016 20:48:50 +0000 (15:48 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/text/print.c

index 4183b8e0be9a1479ef54ca68db52dd1efa7e2ff0..37135eaf4ecf4a545bd6a14a2925c56c2b7e5b4c 100644 (file)
@@ -119,6 +119,7 @@ enum bt_component_status print_event_header(struct text_component *text,
        }
 
        fputs(bt_ctf_event_class_get_name(event_class), text->out);
+       bt_put(event_class);
 end:
        return ret;
 }
This page took 0.026625 seconds and 4 git commands to generate.