krb5 commit: Fix memory leak in t_accname test program
Greg Hudson
ghudson at mit.edu
Mon Sep 14 20:01:24 EDT 2015
https://github.com/krb5/krb5/commit/5b156650dca05ee5d41813cd757706520b427a18
commit 5b156650dca05ee5d41813cd757706520b427a18
Author: Greg Hudson <ghudson at mit.edu>
Date: Tue Sep 1 12:17:18 2015 -0400
Fix memory leak in t_accname test program
In t_accname.c, release real_acceptor_name and namebuf before
returning from main().
src/tests/gssapi/t_accname.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/tests/gssapi/t_accname.c b/src/tests/gssapi/t_accname.c
index 9f769ad..30b5db5 100644
--- a/src/tests/gssapi/t_accname.c
+++ b/src/tests/gssapi/t_accname.c
@@ -84,8 +84,10 @@ main(int argc, char *argv[])
(void)gss_release_name(&minor, &target_name);
(void)gss_release_name(&minor, &acceptor_name);
+ (void)gss_release_name(&minor, &real_acceptor_name);
(void)gss_release_cred(&minor, &acceptor_cred);
(void)gss_delete_sec_context(&minor, &initiator_context, NULL);
(void)gss_delete_sec_context(&minor, &acceptor_context, NULL);
+ (void)gss_release_buffer(&minor, &namebuf);
return 0;
}
More information about the cvs-krb5
mailing list