[krbdev.mit.edu #1474] CVS Commit

Ezra Peisach via RT rt-comment at krbdev.mit.edu
Mon May 12 05:29:54 EDT 2003


	* krb5_decode_test.c: Modify decode_run macro to take a cleanup
	handler to free allocated memory. Add static handlers to free
	krb5_alt_method, passwd_phrase_element and krb5_enc_data as the
	krb5 library does not handle at this time.

	* krb5_encode_test.c: Free krb5_context at end. Utilize the many
	ktest_empty and detroy functions to cleanup memory.

	* ktest.h, ktest.c: Add many ktest free and empty functions to
	cleanup allocated structures in tests.

	* utility.c (krb5_data_hex_parse): Free temporary data.

With these changes, one can then test for memory leaks in the
asn.1 and krb5_free functions.


To generate a diff of this commit:



	cvs diff -r1.72 -r1.73 krb5/src/tests/asn.1/ChangeLog
	cvs diff -r1.27 -r1.28 krb5/src/tests/asn.1/krb5_decode_test.c
	cvs diff -r1.20 -r1.21 krb5/src/tests/asn.1/krb5_encode_test.c
	cvs diff -r1.17 -r1.18 krb5/src/tests/asn.1/ktest.c
	cvs diff -r1.10 -r1.11 krb5/src/tests/asn.1/ktest.h
	cvs diff -r1.9 -r1.10 krb5/src/tests/asn.1/utility.c 


More information about the krb5-bugs mailing list