lib: trace IR, values: reset pointers to `NULL` on destruction
[babeltrace.git] / lib / trace-ir / field-path.c
index 2534facf190376f9446c1564f6e4b8d65197dd79..48a03a86b5ec82472a1bf18a75f55a4738c1b75d 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * field-path.c
- *
- * Babeltrace trace IR - Field path
- *
  * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  * Copyright 2016 Philippe Proulx <pproulx@efficios.com>
  *
@@ -48,6 +44,7 @@ void destroy_field_path(struct bt_object *obj)
        BT_ASSERT(field_path);
        BT_LIB_LOGD("Destroying field path: %!+P", field_path);
        g_array_free(field_path->indexes, TRUE);
+       field_path->indexes = NULL;
        g_free(field_path);
 }
 
This page took 0.023317 seconds and 4 git commands to generate.