table_dispose(&fac->named_types);
freeTypes(&fac->unnamed_types);
sequence_dispose(&fac->unnamed_types);
- free(fac);
+ g_free(fac);
}
else in.error(&in,"facility token was expected");
}
field->parent = NULL;
field->child = NULL;
field->current_element = 0;
-
+
//construct field tree and type graph
constructTypeAndFields(f,((event*)(events->array[i]))->type,field);
}else{
- evType->root_field = NULL;
+ evType->root_field = NULL;
+ sequence_pop(&(f->all_fields));
g_free(field);
}
}