Fix a memory leak

2 jobs for !2 with master+ in 1 minute and 27 seconds (queued for 55 seconds)
merge request