Fix: Break out of loop when searching for a domain's agent
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Sep 2015 20:38:01 +0000 (16:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Sep 2015 20:38:01 +0000 (16:38 -0400)
commit1dfd9906a04873e9d381bf559eb8551c203c8a2a
treefc960dd6a2d8270150ba86ee27885130bed7eaa2
parent4586339794f1139978f2b982d8124e3f5c6bb28e
Fix: Break out of loop when searching for a domain's agent

The list command never check if a domain's agent has been found
and lists the events of every agent.

This has two direct effects:

1) Memory leak of all agents' event descriptions, except the last
2) The session daemon lists the wrong agent's events

This fix check the agent's domain and breaks out of the loop once
one is found.

Fixes #906

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.024963 seconds and 4 git commands to generate.