Fixed a problem with the xstrdup() change.