Print timestamps in text plug-in
[babeltrace.git] / plugins / ctf / fs / fs.c
index 495540b475db7c9894ae2193acd90b5b21269abb..ce9699dd3e384699bd7d614eccf6d103cda9dbaf 100644 (file)
@@ -241,7 +241,7 @@ enum bt_notification_iterator_status ctf_fs_iterator_next(
                struct bt_notification_iterator *iterator)
 {
        int heap_ret;
-       struct bt_ctf_stream *stream;
+       struct bt_ctf_stream *stream = NULL;
        struct ctf_fs_stream *fs_stream;
        struct bt_notification *notification;
        struct bt_notification *next_stream_notification;
@@ -336,6 +336,7 @@ enum bt_notification_iterator_status ctf_fs_iterator_next(
         */
 end:
        BT_MOVE(ctf_it->current_notification, notification);
+       bt_put(stream);
        return ret;
 }
 
This page took 0.024962 seconds and 4 git commands to generate.