Bug fix: added missing xfree() call.