opt_payload_field_names = 1;
ctx.session = g_new0(struct lttng_live_session, 1);
- if (!ctx.session) {
- ret = -1;
- goto end;
- }
+
/* We need a pointer to the context from the packet_seek function. */
ctx.session->ctx = &ctx;
end_free:
g_hash_table_destroy(ctx.session->ctf_traces);
g_free(ctx.session);
-end:
g_free(ctx.session->streams);
return ret;
}