fixed memleak in get_rd_queue