TS-2396: UrlRewrite.cc free the node of queue not correctly