coverity: fixed resolution leak issues