diff options
author | Theodore Tso <tytso@mit.edu> | 1996-05-18 06:04:00 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1996-05-18 06:04:00 +0000 |
commit | b0d9729a07f4e277f11e8dd0457672f45b846541 (patch) | |
tree | bc661b6bbaf4362b14b2d6b2b6afe6532352eda7 /src/lib/crypto | |
parent | 576408fe5966789a74569e305c142a9a2d91282d (diff) | |
download | krb5-b0d9729a07f4e277f11e8dd0457672f45b846541.tar.gz krb5-b0d9729a07f4e277f11e8dd0457672f45b846541.tar.xz krb5-b0d9729a07f4e277f11e8dd0457672f45b846541.zip |
Fix memory leak. Free tempbuf before returning
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8045 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto')
-rw-r--r-- | src/lib/crypto/des/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/crypto/des/u_nfold.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 5768c55a1f..0c12925075 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 <tytso@mit.edu> + + * u_nfold.c (mit_des_n_fold): Fix memory leak. Free tempbuf + before returning. + Tue May 14 18:59:38 1996 Richard Basch <basch@lehman.com> * 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 38829e0ed0..6da58cbef3 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; } |