fix leak in structure validation logging
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Nov 2016 20:30:08 +0000 (15:30 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:06 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.026618 seconds and 4 git commands to generate.