projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9abb4d
)
Fix a memory leak in get_creds.c's try_fallback_realm()
author
Greg Hudson
<ghudson@mit.edu>
Wed, 21 Apr 2010 23:47:50 +0000
(23:47 +0000)
committer
Greg Hudson
<ghudson@mit.edu>
Wed, 21 Apr 2010 23:47:50 +0000
(23:47 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23920
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/krb/get_creds.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/krb/get_creds.c
b/src/lib/krb5/krb/get_creds.c
index 36624af1f0fb99d9ad917b5cef33ba72bf190947..6099c6d919af236264d55fedd61e01d51c85ee5a 100644
(file)
--- a/
src/lib/krb5/krb/get_creds.c
+++ b/
src/lib/krb5/krb/get_creds.c
@@
-496,8
+496,10
@@
try_fallback_realm(krb5_context context, krb5_tkt_creds_context ctx)
return code;
/* Give up if the fallback realm isn't any different. */
- if (data_eq_string(ctx->server->realm, hrealms[0]))
+ if (data_eq_string(ctx->server->realm, hrealms[0])) {
+ krb5_free_host_realm(context, hrealms);
return ctx->reply_code;
+ }
/* Rewrite server->realm to be the fallback realm. */
krb5_free_data_contents(context, &ctx->server->realm);