Fix a memory leak

1 job for master+ in 4 minutes and 24 seconds (queued for 1 second)