Commit Diff
--- lib/dial.c +++ lib/dial.c @@ -300,6 +300,7 @@ got_dial_git(int *newfd, const char *host, const char err = got_error_from_errno("connect"); close(fd); } + freeaddrinfo(servinfo); if (p == NULL) goto done;
--- lib/dial.c +++ lib/dial.c @@ -300,6 +300,7 @@ got_dial_git(int *newfd, const char *host, const char err = got_error_from_errno("connect"); close(fd); } + freeaddrinfo(servinfo); if (p == NULL) goto done;