projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e909c8
)
Remember to free the addresses if necessary; cred_cleanup fixed to do all
author
Theodore Tso
<tytso@mit.edu>
Thu, 2 Jun 1994 16:40:02 +0000
(16:40 +0000)
committer
Theodore Tso
<tytso@mit.edu>
Thu, 2 Jun 1994 16:40:02 +0000
(16:40 +0000)
the cleanup and return the appropriate error code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3669
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/krb/get_in_tkt.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/krb/get_in_tkt.c
b/src/lib/krb5/krb/get_in_tkt.c
index 1706959eb6e1b8854684c629026f02316ed0498b..9a64d378aecb15e720bde1ccf4c7a6874a4c9823 100644
(file)
--- a/
src/lib/krb5/krb/get_in_tkt.c
+++ b/
src/lib/krb5/krb/get_in_tkt.c
@@
-315,6
+315,8
@@
cleanup:
krb5_free_keyblock(decrypt_key);
if (request.padata)
free(request.padata);
+ if (!addrs)
+ krb5_free_addresses(request.addresses);
return retval;
/*
@@
-336,8
+338,6
@@
cred_cleanup:
krb5_free_addresses(creds->addresses);
creds->addresses = 0;
}
-
-
-
+ goto cleanup;
}