Fix source component memory leak
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Sep 2016 01:00:46 +0000 (21:00 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/fs/fs.c

index cf00fddd9986c2aa288d0b2e222d0d65342f3a1b..b80e4e152095c4e3ed19a0abf80b72dc2fe3974b 100644 (file)
@@ -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;
 }
 
This page took 0.024906 seconds and 4 git commands to generate.