scan-build seems confused about the address passed to free() and
reports that chunk elements are passed with an offset of 8 bytes from
the address that was returned by calloc().
Move the inner-trace chunk of an element to the start of the element
wrapper-structure to silence this warning.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* A trace chunk is uniquely identified by its (session id, chunk id) tuple. */
struct lttng_trace_chunk_registry_element {
- uint64_t session_id;
struct lttng_trace_chunk chunk;
+ uint64_t session_id;
/* Weak and only set when added. */
struct lttng_trace_chunk_registry *registry;
struct cds_lfht_node trace_chunk_registry_ht_node;