fix memory leak in hashring_init