svn rev #22951: trunk/src/lib/crypto/crypto_tests/

epeisach@MIT.EDU epeisach at MIT.EDU
Tue Oct 20 06:56:21 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22951
Commit By: epeisach
Log Message:
Clean up memory leaks by releasing key at end.




Changed Files:
U   trunk/src/lib/crypto/crypto_tests/t_cksum.c
U   trunk/src/lib/crypto/crypto_tests/t_cts.c
Modified: trunk/src/lib/crypto/crypto_tests/t_cksum.c
===================================================================
--- trunk/src/lib/crypto/crypto_tests/t_cksum.c	2009-10-20 10:21:01 UTC (rev 22950)
+++ trunk/src/lib/crypto/crypto_tests/t_cksum.c	2009-10-20 10:56:21 UTC (rev 22951)
@@ -138,5 +138,8 @@
   free(newstyle_checksum.data);
   if (!kret)
     printf("%d tests passed successfully for MD%d checksum\n", argc-1, MD);
+
+  krb5_k_free_key(NULL, key);
+
   return(kret);
 }

Modified: trunk/src/lib/crypto/crypto_tests/t_cts.c
===================================================================
--- trunk/src/lib/crypto/crypto_tests/t_cts.c	2009-10-20 10:21:01 UTC (rev 22950)
+++ trunk/src/lib/crypto/crypto_tests/t_cts.c	2009-10-20 10:56:21 UTC (rev 22951)
@@ -169,6 +169,7 @@
 	    exit(1);
 	}
     }
+    krb5_k_free_key(NULL, key);
 }
 
 int main (int argc, char **argv)




More information about the cvs-krb5 mailing list