free data

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1324 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-09 20:02:32 +00:00
parent 51d825f0e5
commit 52faf2b575

View File

@@ -38,6 +38,7 @@ krb5_build_ap_req (krb5_context context,
ap.authenticator.cipher = authenticator;
ret->length = encode_AP_REQ(buf + sizeof(buf) - 1, sizeof(buf), &ap);
free (ap.ticket.realm);
ret->data = malloc(ret->length);
memcpy (ret->data, buf + sizeof(buf) - ret->length, ret->length);