Fix memory leaks in roulette selection