Memory leak during compilation when legacy codec handling is enabled
## Summary
The memory debug mode of the compiler detects memory leak during the compilation of certain data structures (Diameter types) when legacy codec handling (`-e` flag) is enabled.
## Titan version
Checked from 8.0.0 to 10.1.2, but it is present in older versions as well
## Platform details (OS type and version)
All
issue