Free memory, correctly format proxy host