summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar David Benjamin <davidben@mit.edu>2013-07-12 18:13:12 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-08-08 00:24:58 -0400
commitd5502254c8466972b67877e24096559292cbd7ce (patch)
treeb919861dcd72d42324a149b74705f3a8553c543b /lib
parent380d198f6fe5b205f22d056f85fd8c1e63fd8890 (diff)
Free the result of krb5_unparse_name in ZGetSender
Minor memory leak, but we may as well fix it.
Diffstat (limited to 'lib')
-rw-r--r--lib/ZGetSender.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ZGetSender.c b/lib/ZGetSender.c
index 953d4f9..7f0ab23 100644
--- a/lib/ZGetSender.c
+++ b/lib/ZGetSender.c
@@ -46,6 +46,7 @@ ZGetSender(void)
if (!result) {
krb5_unparse_name(Z_krb5_ctx, principal, &prname);
sender = strdup(prname);
+ krb5_free_unparsed_name(Z_krb5_ctx, prname);
krb5_free_principal(Z_krb5_ctx, principal);
return sender;
}