Use xfree, not free, to avoid crash with --enable-checking=xmallocoverrun.