From: Jérémie Galarneau Date: Tue, 15 Nov 2016 20:30:08 +0000 (-0500) Subject: fix leak in structure validation logging X-Git-Tag: v2.0.0-pre1~713 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=e5ed1ccf57fb9a0693f3e3ec56204f88856b5b34 fix leak in structure validation logging Signed-off-by: Jérémie Galarneau --- 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; } }