Fixed memory leak when getting users home directory.