fix memory leak due to thrift server info reference.