lttng-sessiond: clean-up: set free'd pointer to NULL
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Sep 2019 14:23:23 +0000 (10:23 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit3577d7d8ecbe2ded93572fcf38ea555bd3d04722
tree8b19a95ad04870a777a9b419f0e0427dd7e09a2e
parent04054b432f3009b65a75016be2ede80c3c31e3b1
lttng-sessiond: clean-up: set free'd pointer to NULL

Set the wait_node and ust_cmd pointers to NULL after they have been
free'd to make this function easier to follow. This may also help
scan-build analyze this function as it gets confused about the values
of those variables. Currently, scan-build (clang 8.0.1) reports a
use-after free of both variables when 'app' is simultaneously null and
non-null... you read that right.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/dispatch.c
This page took 0.024646 seconds and 4 git commands to generate.