X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fstruct.c;h=22689c1cc4130f46053ccd701024c3b1d19eeb1c;hp=f360407c46f3ed956285689ae3847c9b5d01625a;hb=9f2c779c273ae143ec00fb789b9a26ebecad173d;hpb=3122e6f075647374e7a98ae9501d100de8d004a9 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); }