lib/ctf-ir/field-types.c: logging: log struct/var FT field destruction
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 16 May 2017 01:01:02 +0000 (21:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:43 +0000 (12:57 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/field-types.c

index 4b2f37cf9c3a3ced70955dddae0e68ab85da5dd0..1cd231f2113d002049ef96374e993cf06ea1c99a 100644 (file)
@@ -306,6 +306,13 @@ void destroy_enumeration_mapping(struct enumeration_mapping *mapping)
 static
 void destroy_structure_field(struct structure_field *field)
 {
+       if (!field) {
+               return;
+       }
+
+       BT_LOGD("Destroying structure/variant field type's field object: "
+               "addr=%p, field-ft-addr=%p, field-name=\"%s\"",
+               field, field->type, g_quark_to_string(field->name));
        bt_put(field->type);
        g_free(field);
 }
This page took 0.026259 seconds and 4 git commands to generate.