API : list of events in the trace
[babeltrace.git] / formats / ctf / ctf.c
index 65b4cf7643518b3b4362c8c314a0c43803bec837..91fc20c3972626a59075b13dcf72df981b30f2a3 100644 (file)
@@ -1617,6 +1617,16 @@ void ctf_close_trace(struct trace_descriptor *tdp)
                }
                g_ptr_array_free(td->streams, TRUE);
        }
                }
                g_ptr_array_free(td->streams, TRUE);
        }
+
+       if (td->event_declarations) {
+               for (i = 0; i < td->event_declarations->len; i++) {
+                       struct bt_ctf_event_decl *event;
+
+                       event = g_ptr_array_index(td->event_declarations, i);
+                       g_free(event);
+               }
+               g_ptr_array_free(td->event_declarations, TRUE);
+       }
        closedir(td->dir);
        g_free(td);
 }
        closedir(td->dir);
        g_free(td);
 }
This page took 0.022272 seconds and 4 git commands to generate.