X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Finvitation.c;h=4a262a82ab862042ff49496fe9c6f20b153ddfe4;hp=c667a6edfde72b8b49fe79b4a585fe7911d4890e;hb=92d66492e0824674f68d26e787dd1ba4444a4601;hpb=ca989c0c8b19901cbd7664a9d2b42aa85c9c176e diff --git a/src/invitation.c b/src/invitation.c index c667a6ed..4a262a82 100644 --- a/src/invitation.c +++ b/src/invitation.c @@ -1201,6 +1201,7 @@ next: aip = aip->ai_next; if(!aip) { + freeaddrinfo(ai); return 1; } } @@ -1246,6 +1247,8 @@ next: goto next; } + freeaddrinfo(ai); + // Check if the hash of the key he gave us matches the hash in the URL. char *fingerprint = line + 2; char hishash[64];