Fixed sampler memory leak caused by ConfigParser