Fix: free all the metadata-related memory
[babeltrace.git] / types / struct.c
index f360407c46f3ed956285689ae3847c9b5d01625a..22689c1cc4130f46053ccd701024c3b1d19eeb1c 100644 (file)
@@ -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);
 }
 
This page took 0.022667 seconds and 4 git commands to generate.