Fix: Close traces on context destruction
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Oct 2013 16:08:30 +0000 (12:08 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 16:59:20 +0000 (11:59 -0500)
commit5dc8ffa0c2a98bcad955b6dd640404029f75d8e1
tree20437ed683c896878b1eec9cdd150f257f552ba0
parent0f2dee49b850816973685ea8674252c9b4c37e1e
Fix: Close traces on context destruction

bt_trace_handle_destroy is called on destruction of the trace_handle
hash table's elements. This function only frees the trace handle,
leaving the input traces open.

This fix sets remove_trace_handle as the value_destroy_func ensuring
that the format's close_trace function is called before the trace_handle
is destroyed.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/context.c
This page took 0.02504 seconds and 4 git commands to generate.