Fix possible memory leak in StructuredOutputMachine
Merge pull request #1197 from iglesias/feature/structure_fix_leak

Fix possible memory leak in StructuredOutputMachine