fix leak in structure validation logging
[babeltrace.git] / formats / ctf / ir / fields.c
index 7d5f744c19b23cbdfbd81b0061bb0a9cf43c8093..55af6d0a5b3c0506e6a7c1be74febd49c48f334a 100644 (file)
@@ -1600,6 +1600,7 @@ int bt_ctf_field_structure_validate(struct bt_ctf_field *field)
                                        &name, NULL, i);
                        fprintf(stderr, "Field %s failed validation\n",
                                        name ? name : "NULL");
+                       bt_put(field_type);
                        goto end;
                }
        }
This page took 0.024508 seconds and 4 git commands to generate.