Fix double free on error in home_server_add

Fix potential issue with wrong free function being used in home_server_add