From e5ed1ccf57fb9a0693f3e3ec56204f88856b5b34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 15 Nov 2016 15:30:08 -0500 Subject: [PATCH] fix leak in structure validation logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/fields.c | 1 + 1 file changed, 1 insertion(+) diff --git a/formats/ctf/ir/fields.c b/formats/ctf/ir/fields.c index 7d5f744c..55af6d0a 100644 --- a/formats/ctf/ir/fields.c +++ b/formats/ctf/ir/fields.c @@ -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; } } -- 2.34.1