lib: trace IR, values: reset pointers to `NULL` on destruction
[babeltrace.git] / lib / trace-ir / field-path.c
index 613974e699802c84c638d301fd00db167ba7863d..48a03a86b5ec82472a1bf18a75f55a4738c1b75d 100644 (file)
@@ -44,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.023803 seconds and 4 git commands to generate.