Clean-up: sessiond: automatic memory management of ltt_ust_event
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 22 Jul 2024 19:16:27 +0000 (19:16 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Jul 2024 01:26:51 +0000 (01:26 +0000)
commit5e3dc005e20046f3380aa464f83a78a3e7296c05
tree7be3eb17050522de1b497334d5d8121cc4f35d97
parenta61068f6b170b407ce9e4d129c7845dcad6ff415
Clean-up: sessiond: automatic memory management of ltt_ust_event

Simplify trace_ust_create_event by wrapping the created ltt_ust_event
in a unique_ptr until it is returned (on success).

Change-Id: I1b14df589f30d4cd19c9712b70f6c5656335123b
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.cpp
src/bin/lttng-sessiond/trace-ust.hpp
This page took 0.024707 seconds and 4 git commands to generate.