Fix: lttng-sessiond: event_context might leak
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 1 Mar 2022 14:52:21 +0000 (09:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:12:14 +0000 (14:12 -0500)
commit129d59f5a8860d15bef3ed5a59c88e13912a5367
tree378e17da26e679ddfa7bd8671dbe6fc7a9eba3bb
parent821a8b53753b1d39932ae8e208cb5d3e675a760d
Fix: lttng-sessiond: event_context might leak

If the parsing completed but is not the expected size, the
*out_event_context object leaks.

Reported by Coverity:

    CID 1475821 (#1 of 1): Resource leak (RESOURCE_LEAK)
    Variable event_context going out of scope leaks the storage it points to.

Change-Id: I8198f7f3f1e1af3dcb377d89674402ec49cb788b
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/client.cpp
This page took 0.025873 seconds and 5 git commands to generate.