Plugin config reader memory leak fix