Fix valgrind warning

Valgrind warns about shared_data.serveraddr memory leak. It doesn't need to be freed, but it seems that there is no downside of calling extra freeaddrinfo(), and it's easier to free it than adding a suppression file for the leak.