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