Fix memory leak. Free tempbuf before returning
authorTheodore Tso <tytso@mit.edu>
Sat, 18 May 1996 06:04:00 +0000 (06:04 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 18 May 1996 06:04:00 +0000 (06:04 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8045 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/ChangeLog
src/lib/crypto/des/u_nfold.c

index 5768c55a1f6d43f6f9190ab1a5d0e4efd5841628..0c1292507532dac65db425e82aed40209bedc3c1 100644 (file)
@@ -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.
index 38829e0ed00be188e0fd54de8a24813942b172a2..6da58cbef355b2563092113057ff53749404c75b 100644 (file)
@@ -92,6 +92,8 @@ mit_des_n_fold(inbuf, inlen, outbuf, outlen)
        }
        bytes += inlen;
     } while (bytes % outlen);
+
+    free(tempbuf);
     
     return 0;
 }