In version.c: forgot to cleanup the mi if an error occur after a valid creation 
of the writer.
In the mi-lttng.h/c: events share common attribute, so we create a function
to handle the machine interface representation of those attributes.