Memory leak in krb5_send_tgs()
authorEzra Peisach <epeisach@mit.edu>
Sun, 12 Jan 2003 18:02:03 +0000 (18:02 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 12 Jan 2003 18:02:03 +0000 (18:02 +0000)
* 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
src/lib/krb5/krb/send_tgs.c

index eec37644b73d4b12c3fac2546e427ae3aaed05f0..4a02cabd98dbaf2b26da5d4ba89b5efccad93c3d 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-12  Ezra Peisach  <epeisach@bu.edu>
+
+       * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ.
+
 2003-01-10  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in: Add AC_SUBST_FILE marker for libobj_frag.
index 800a2761d8c70507689fceb4222ac7a797adccab..244d18e123089524b049b86397cc07dfa3d5e6c1 100644 (file)
@@ -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);