From: Jérémie Galarneau Date: Thu, 8 Sep 2016 01:00:46 +0000 (-0400) Subject: Fix source component memory leak X-Git-Tag: v2.0.0-pre1~764 X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=8cc9065fc15a5aaa5841ef8b994e2128c3b12bc7;p=babeltrace.git Fix source component memory leak Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/ctf/fs/fs.c b/plugins/ctf/fs/fs.c index cf00fddd..b80e4e15 100644 --- a/plugins/ctf/fs/fs.c +++ b/plugins/ctf/fs/fs.c @@ -57,6 +57,7 @@ struct bt_notification *ctf_fs_iterator_get( notification = bt_get(ctf_fs->current_notification); end: + BT_PUT(component); return notification; } @@ -86,6 +87,7 @@ enum bt_notification_iterator_status ctf_fs_iterator_next( bt_put(ctf_fs->current_notification); ctf_fs->current_notification = notification; end: + BT_PUT(component); return ret; }