Cleanup: fix cppcheck warning
[babeltrace.git] / types / struct.c
index 188be82cadb95592864162cd47f8b8fcd5c21f48..22689c1cc4130f46053ccd701024c3b1d19eeb1c 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <babeltrace/compiler.h>
 #include <babeltrace/format.h>
+#include <babeltrace/types.h>
 #include <errno.h>
 
 #ifndef max
@@ -168,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.023682 seconds and 4 git commands to generate.