Remember to free the result of getaddrinfo() in the new sendto_kdc
authorGreg Hudson <ghudson@mit.edu>
Wed, 23 Feb 2011 18:14:11 +0000 (18:14 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 23 Feb 2011 18:14:11 +0000 (18:14 +0000)
code.

ticket: 6868

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24651 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/sendto_kdc.c

index 242dcb54fdb2fe84aa660acf878f4845ab6f8d62..5e059a59e98a5cccdea99e109cd26d389674d6f2 100644 (file)
@@ -694,6 +694,7 @@ resolve_server(krb5_context context, const struct serverlist *servers,
             retval = add_connection(conns, a, ind, message, udpbufp);
         }
     }
+    freeaddrinfo(addrs);
     return retval;
 }