optimize error code print
add free mpool call after rm it in rootTuple