Skip Menu |
 

From: epeisach@mit.edu
Subject: CVS Commit
* 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
From: tlyu@mit.edu
Subject: CVS Commit
To generate a diff of this commit:



cvs diff -r1.71.2.1 -r1.71.2.2 krb5/src/tests/asn.1/ChangeLog
cvs diff -r1.27 -r1.27.2.1 krb5/src/tests/asn.1/krb5_decode_test.c
cvs diff -r1.19.4.1 -r1.19.4.2
krb5/src/tests/asn.1/krb5_encode_test.c
cvs diff -r1.16.4.1 -r1.16.4.2 krb5/src/tests/asn.1/ktest.c
cvs diff -r1.9.2.1 -r1.9.2.2 krb5/src/tests/asn.1/ktest.h
cvs diff -r1.9 -r1.9.2.1 krb5/src/tests/asn.1/utility.c