From: Julien Desfossez Date: Thu, 25 May 2017 18:51:03 +0000 (-0400) Subject: Fix debug-info leak: unbalanced get/put X-Git-Tag: v2.0.0-pre1~174 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=34101229f363ec19ce2deac84f138e393474595f Fix debug-info leak: unbalanced get/put Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/lttng-utils/copy.c b/plugins/lttng-utils/copy.c index be170a54..385d55c4 100644 --- a/plugins/lttng-utils/copy.c +++ b/plugins/lttng-utils/copy.c @@ -1112,6 +1112,7 @@ struct bt_ctf_stream *debug_info_stream_end(struct debug_info_iterator *debug_it __func__, __FILE__, __LINE__); goto end; } + bt_get(writer_stream); g_hash_table_remove(debug_it->stream_map, stream); end: