From 994b5eca1d7380a6fea8b49b45767b55d89276cb Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Sun, 12 Jan 2003 18:02:03 +0000 Subject: [PATCH] Memory leak in krb5_send_tgs() * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15115 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 4 ++++ src/lib/krb5/krb/send_tgs.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index eec37644b..4a02cabd9 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,7 @@ +2003-01-12 Ezra Peisach + + * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ. + 2003-01-10 Ken Raeburn * Makefile.in: Add AC_SUBST_FILE marker for libobj_frag. diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c index 800a2761d..244d18e12 100644 --- a/src/lib/krb5/krb/send_tgs.c +++ b/src/lib/krb5/krb/send_tgs.c @@ -284,6 +284,8 @@ send_again: rep->message_type = KRB5_ERROR; } + krb5_free_data(context, scratch); + send_tgs_error_2:; if (sec_ticket) krb5_free_ticket(context, sec_ticket); -- 2.26.2