Fix: list_ust_events(): dangling pointer
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 26 Aug 2015 17:40:18 +0000 (13:40 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 6 Sep 2015 03:07:11 +0000 (23:07 -0400)
Fixes #908

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.c

index bc59e626f08fe998cd8f2e7e20749092f6cdde36..fc1d82001e111befe11b2b7c75ea9e802654d519 100644 (file)
@@ -493,7 +493,7 @@ static int list_ust_events(void)
        int i, size, ret = CMD_SUCCESS;
        struct lttng_domain domain;
        struct lttng_handle *handle;
-       struct lttng_event *event_list;
+       struct lttng_event *event_list = NULL;
        pid_t cur_pid = 0;
        char *cmdline = NULL;
 
This page took 0.025694 seconds and 4 git commands to generate.