X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fstruct.c;fp=types%2Fstruct.c;h=22689c1cc4130f46053ccd701024c3b1d19eeb1c;hp=f360407c46f3ed956285689ae3847c9b5d01625a;hb=15d4fe3c66b4bc1453f82c075634e325e3008162;hpb=6743ae7d80368d451ba9c4583ae826dc76af0061 diff --git a/types/struct.c b/types/struct.c index f360407c..22689c1c 100644 --- a/types/struct.c +++ b/types/struct.c @@ -169,6 +169,7 @@ void _struct_definition_free(struct definition *definition) } free_definition_scope(_struct->p.scope); declaration_unref(_struct->p.declaration); + g_ptr_array_free(_struct->fields, TRUE); g_free(_struct); }