Fixed memory leak in getUsers bug 439

Fixed memory leak in getUsers bug 439