Fix kernel_list_events memleaks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Mar 2012 17:15:01 +0000 (13:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 20 Mar 2012 17:15:01 +0000 (13:15 -0400)
commit3b870559a62e8f74a8793a6a23b9445346fe9fdf
treed8d1cc25fa3340d33ad3663ec258b8257ec3def5
parent032b44f037bc3aeeb21a2e1679fa88eba2e3b551
Fix kernel_list_events memleaks

- The fscanf %m allocation was leaking the "event" (needs to be freed
  explicitly).
- The error handling of realloc should free the previous pointer.

Acked-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/kernel.c
This page took 0.026418 seconds and 4 git commands to generate.