Clean-up: silence erroneous leak warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 17:44:26 +0000 (13:44 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 17:44:26 +0000 (13:44 -0400)
Add an assert to validate that a newly created uevent is not enabled.
If it was enabled at creation time, it would be leaked before it is
published.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/event.c

index b0b37bed777a4eb5b537b0739c14115b5e3020a2..0b612d2c68b92fa0472426f469b0c040e1f4b567 100644 (file)
@@ -190,6 +190,7 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess,
 
        if (uevent->enabled) {
                /* It's already enabled so everything is OK */
+               assert(!to_create);
                ret = LTTNG_ERR_UST_EVENT_ENABLED;
                goto end;
        }
This page took 0.026143 seconds and 4 git commands to generate.