From d0060eb2393ef195fa0194dba4e7d76e76d0b03b Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 14 Oct 2008 16:52:39 +0000 Subject: [PATCH] Free error message returned by krb5_get_error_message ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20866 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/kim_error_message.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kim/lib/kim_error_message.c b/src/kim/lib/kim_error_message.c index b292505c4..49f26301d 100644 --- a/src/kim/lib/kim_error_message.c +++ b/src/kim/lib/kim_error_message.c @@ -174,6 +174,8 @@ kim_error kim_error_set_message_for_krb5_error (krb5_context in_context, const char *message = krb5_get_error_message (in_context, in_code); err = kim_error_set_message (in_code, message); + + if (message) { krb5_free_error_message (in_context, message); } } return err ? err : in_code; -- 2.26.2