Tests: fix: leak of probe location in uprobe notification test
[lttng-tools.git] / tests / regression / tools / notification / notification.c
index 9e2afc0b47959b2e29a13a4b16ab82899239ccf3..73415c51ecc51d3fc58675fd1fd2d764f96d5998 100644 (file)
 #include <poll.h>
 
 #include <common/compat/errno.h>
-#include <lttng/action/action.h>
-#include <lttng/action/notify.h>
-#include <lttng/condition/buffer-usage.h>
-#include <lttng/condition/condition.h>
-#include <lttng/condition/evaluation.h>
-#include <lttng/condition/event-rule.h>
-#include <lttng/domain.h>
-#include <lttng/endpoint.h>
-#include <lttng/event-rule/kprobe.h>
-#include <lttng/event-rule/syscall.h>
-#include <lttng/event-rule/tracepoint.h>
-#include <lttng/event-rule/uprobe.h>
-#include <lttng/kernel-probe.h>
-#include <lttng/lttng-error.h>
 #include <lttng/lttng.h>
-#include <lttng/notification/channel.h>
-#include <lttng/notification/notification.h>
-#include <lttng/condition/evaluation.h>
-#include <lttng/trigger/trigger.h>
-#include <lttng/userspace-probe.h>
 
 #include <tap/tap.h>
 
@@ -1508,6 +1489,7 @@ end:
        lttng_unregister_trigger(trigger);
        lttng_trigger_destroy(trigger);
        lttng_action_destroy(action);
+       lttng_userspace_probe_location_destroy(probe_location);
        lttng_event_rule_destroy(event_rule);
        lttng_condition_destroy(condition);
        return;
This page took 0.023576 seconds and 4 git commands to generate.