action manager: fix leak that was potentially triggering massive logfile spam.