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>
Thu, 24 Sep 2015 02:44:09 +0000 (22:44 -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 3d0ce03048eb4152b2938abca31498a6c3ecc68a..bcf2f0a5f0b44e5bc7c4cd36746d94c9adc33d92 100644 (file)
@@ -501,7 +501,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.026928 seconds and 4 git commands to generate.