Fix a memory leak when ola_trigger is run in validation mode.