Fix getprotobyname double free (issue #78)