(init_sockets): free addresses

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5759 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-03-25 03:38:29 +00:00
parent 321667c4e0
commit 530c75890d

View File

@@ -252,6 +252,7 @@ init_sockets(struct descr **desc)
}
}
}
krb5_free_addresses (context, &addresses);
d = realloc(d, num * sizeof(*d));
if (d == NULL && num != 0)
krb5_errx(context, 1, "realloc(%u) failed", num * sizeof(*d));