`agent` instances are lazily created at various sites and their
ownership can be confusing for both analysis tools and meat bags.
Document that the ownership of the instance is transferred by the
`agent_add` function.
Change-Id: I709d2908611bdebd88c82261d1e5d5ee3bde3a09
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
ret_code = LTTNG_ERR_NOMEM;
goto error_remove_chan;
}
+
+ /* Ownership of agt is transferred. */
agent_add(agt, usess->agents);
}
}
return LTTNG_ERR_NOMEM;
}
+ /* Ownership of agt is transferred. */
agent_add(agt, usess->agents);
}
return ret_code;
}
+ /* Ownership of agt is transferred. */
agent_add(agt, the_trigger_agents_ht_by_domain);
}
ret = -LTTNG_ERR_NOMEM;
goto error;
}
+
+ /* Ownership of agt is transferred. */
agent_add(agt, usess->agents);
}
ret = agent_add_context(ctx, agt);