krb5 commit: Fix leak in test_check_allowed_to_delegate()
Greg Hudson
ghudson at mit.edu
Thu Jun 2 15:34:09 EDT 2016
https://github.com/krb5/krb5/commit/a9478009dc9a5f554fbd7566432be8175e96ed50
commit a9478009dc9a5f554fbd7566432be8175e96ed50
Author: Greg Hudson <ghudson at mit.edu>
Date: Thu Jun 2 00:51:11 2016 -0400
Fix leak in test_check_allowed_to_delegate()
sprinc and tprinc must be freed. Reported by Will Fiveash.
ticket: 8426
src/plugins/kdb/test/kdb_test.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/plugins/kdb/test/kdb_test.c b/src/plugins/kdb/test/kdb_test.c
index 01f17b6..b752c0e 100644
--- a/src/plugins/kdb/test/kdb_test.c
+++ b/src/plugins/kdb/test/kdb_test.c
@@ -497,6 +497,8 @@ test_check_allowed_to_delegate(krb5_context context,
break;
}
}
+ krb5_free_unparsed_name(context, sprinc);
+ krb5_free_unparsed_name(context, tprinc);
profile_free_list(values);
return found ? 0 : KRB5KDC_ERR_POLICY;
}
More information about the cvs-krb5
mailing list