* t_cksum.c (main): Free memory leak in tests
authorEzra Peisach <epeisach@mit.edu>
Wed, 5 Dec 2001 12:01:17 +0000 (12:01 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 5 Dec 2001 12:01:17 +0000 (12:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14040 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/keyhash_provider/ChangeLog
src/lib/crypto/keyhash_provider/Makefile.in
src/lib/crypto/keyhash_provider/t_cksum.c

index 912f102232b0eff61a6a6be71947206da46243c0..2ded8692ea0ac3d9c864bc013a1060d73c2b2819 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-05  Ezra Peisach  <epeisach@mit.edu>
+
+       * t_cksum.c (main): Free memory leak in tests.
+
 2001-10-28  Jeff Altman <jaltman@columbia.edu>
 
         * Makefile.in - added dependency info for hmac_md5.c
index 2e42a324c88c5cdefa77d50cfc39de4017542a6b..d1e33571d4c622a287791dae7951834de5def531 100644 (file)
@@ -37,10 +37,10 @@ t_cksum5.o: $(srcdir)/t_cksum.c
        $(CC) -DMD=5 $(ALL_CFLAGS) -o t_cksum5.o -c $(srcdir)/t_cksum.c
 
 t_cksum4: t_cksum4.o $(CRYTPO_DEPLIB)
-       $(CC_LINK) -o t_cksum4 t_cksum4.o $(K5CRYPTO_LIB)
+       $(CC_LINK) -o t_cksum4 t_cksum4.o $(K5CRYPTO_LIB) $(LIBS)
 
 t_cksum5: t_cksum5.o $(CRYPTO_DEPLIB)
-       $(CC_LINK) -o t_cksum5 t_cksum5.o $(K5CRYPTO_LIB)
+       $(CC_LINK) -o t_cksum5 t_cksum5.o $(K5CRYPTO_LIB) $(LIBS)
 
 check-unix:: t_cksum4 t_cksum5
        $(RUN_SETUP) $(C)t_cksum4 "this is a test"
index 3fa022fd6fd97d30375622f0537b5d8c90f74ce5..84b2016c4a78ee01cde06b9b459e4a158539e4ec 100644 (file)
@@ -132,6 +132,7 @@ main(argc, argv)
     printf("Verify of bad checksum OK for \"%s\"\n", argv[msgindex]);
     kret = 0;
   }
+  free(newstyle_checksum.data);
   if (!kret)
     printf("%d tests passed successfully for MD%d checksum\n", argc-1, MD);
   return(kret);