From b0d9729a07f4e277f11e8dd0457672f45b846541 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 18 May 1996 06:04:00 +0000 Subject: [PATCH] Fix memory leak. Free tempbuf before returning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8045 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/ChangeLog | 5 +++++ src/lib/crypto/des/u_nfold.c | 2 ++ 2 files changed, 7 insertions(+) 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; } -- 2.26.2