intermediate representation is leaking
We have a nice comment in
/* TODO: missing metadata "destroy" (memory leak) */
This should be implemented before 1.0 final, especially given that we now expose an external API. It made sense to disregard memory allocation when babeltrace was a one-shot command line converter, but not anymore.
Thorough testing under valgrind is recommended.