From: Philippe Proulx Date: Wed, 26 Aug 2015 17:40:18 +0000 (-0400) Subject: Fix: list_ust_events(): dangling pointer X-Git-Tag: v2.8.0-rc1~384 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bec9764693f61c0ed708d94a89e15a7ee38e5c69;p=lttng-tools.git Fix: list_ust_events(): dangling pointer Fixes #908 Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index bc59e626f..fc1d82001 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -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;