From: Theodore Tso Date: Tue, 14 Feb 1995 04:34:35 +0000 (+0000) Subject: Fix memory leak --- the default encryption types was not being freed X-Git-Tag: krb5-1.0-beta5~718 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fdd4755f6de60a6b32732968ab2a45a1e921f078;p=krb5.git Fix memory leak --- the default encryption types was not being freed git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4944 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index bed2ba7b6..9eaf91de8 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Mon Feb 13 20:25:20 1995 Theodore Y. Ts'o (tytso@dcl) + + * get_in_tkt.c (krb5_get_in_tkt): Fix memory leak --- the default + encryption types was not being freed. + Fri Feb 10 15:45:59 1995 Theodore Y. Ts'o * rd_req.c (krb5_rd_req): Remove ISODE cruft. diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 8275fa27f..0e72579da 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -179,8 +179,11 @@ krb5_get_in_tkt(context, options, addrs, etypes, ptypes, key_proc, keyseed, request.second_ticket = 0; /* encode & send to KDC */ - if (retval = encode_krb5_as_req(&request, &packet)) - goto cleanup; + retval = encode_krb5_as_req(&request, &packet); + if (!etypes) + free(request.etype); + if (retval) + goto cleanup; k4_version = packet->data[0]; retval = krb5_sendto_kdc(context, packet,