From: Theodore Tso Date: Sat, 18 May 1996 06:04:00 +0000 (+0000) Subject: Fix memory leak. Free tempbuf before returning X-Git-Tag: krb5-1.0-beta6~71 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0d9729a07f4e277f11e8dd0457672f45b846541;p=krb5.git Fix memory leak. Free tempbuf before returning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8045 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 5768c55a1..0c1292507 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,8 @@ +Sat May 18 02:02:59 1996 Theodore Y. Ts'o + + * u_nfold.c (mit_des_n_fold): Fix memory leak. Free tempbuf + before returning. + Tue May 14 18:59:38 1996 Richard Basch * des_int.h: the cs_entry routines in cbc_cksum.c are now static. diff --git a/src/lib/crypto/des/u_nfold.c b/src/lib/crypto/des/u_nfold.c index 38829e0ed..6da58cbef 100644 --- a/src/lib/crypto/des/u_nfold.c +++ b/src/lib/crypto/des/u_nfold.c @@ -92,6 +92,8 @@ mit_des_n_fold(inbuf, inlen, outbuf, outlen) } bytes += inlen; } while (bytes % outlen); + + free(tempbuf); return 0; }