Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.507 (Entity 5.507) From: ghudson@mit.edu Subject: git commit RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 945 Fix memory leak in gss_add_cred() creation case If gss_add_cred() is called with no input_cred_handle, it creates a new credential with one element. At the end of the function, use the created credential as the output container, rather than creating a second one and leaking the first. Add a test program for gss_add_cred() and run it. (cherry picked from commit 9e32161dc307a323fd36fd59e252583fe7b90526) https://github.com/krb5/krb5/commit/a2dfb0be1c78ba9d6fef1e37b9c6e5be5787d31a Author: Greg Hudson Commit: a2dfb0be1c78ba9d6fef1e37b9c6e5be5787d31a Branch: krb5-1.16 .gitignore | 1 + src/lib/gssapi/mechglue/g_acquire_cred.c | 3 + src/tests/gssapi/Makefile.in | 48 ++++++++------- src/tests/gssapi/t_add_cred.c | 98 ++++++++++++++++++++++++++++++ src/tests/gssapi/t_gssapi.py | 6 +- 5 files changed, 131 insertions(+), 25 deletions(-)