1457841 Resource leak
The system resource will not be reclaimed and reused, reducing the
future availability of the resource.
In mi_error_query_trigger_callback: Leak of memory or pointers to system
resources (CWE-404)
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4e2cde41d77e5299d1758e8c9387b0a1c63efd17
lttng_strerror(-ret_code));
}
+ lttng_error_query_destroy(query);
return ret_code;
}
trigger_name, (int) trigger_uid,
lttng_strerror(-ret_code));
}
+
+ lttng_error_query_destroy(query);
return ret_code;
}
lttng_strerror(-ret_code));
}
+ lttng_error_query_destroy(query);
return ret_code;
}
+
int cmd_list_triggers(int argc, const char **argv)
{
int ret;