Make sure a partially allocated queue is freed.