fix coverity issue 1121924, Resource leak