(send_via_proxy): free data

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7630 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-12-20 00:58:47 +00:00
parent 5b87603dd0
commit 1b12c75c63

View File

@@ -269,8 +269,11 @@ send_via_proxy (krb5_context context,
}
break;
}
if (a == NULL)
if (a == NULL) {
freeaddrinfo (ai);
return 1;
}
freeaddrinfo (ai);
asprintf(&prefix, "http://%s/", hostname);
if(prefix == NULL) {