Fix leak in Random_unittest