krb5 1.5 alpha - memory leaks in krb5kdc due to not freeing error messages
authorEzra Peisach <epeisach@mit.edu>
Thu, 1 Jun 2006 03:18:19 +0000 (03:18 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 1 Jun 2006 03:18:19 +0000 (03:18 +0000)
commitc5ac1117b5509a136aae235adc31828ac092d29f
tree53dd5bf8a1fd3735cb1addea551c3d2954a0cfb9
parent2e376ed28688004f733853cdca98e848a77d1d39
krb5 1.5 alpha - memory leaks in krb5kdc due to not freeing error messages

In the kdc and lib/kadm5/logger.c, krb5_get_error_message needs to be paired
with krb5_free_error_message to release returned memory.

Essentially a memory leak was introduced for every principal requested
that did not exist in the database.

Identified by valgrind on the kdc - running kdc_hammer and specifying
more principals than are present in the db.

ticket: new
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18072 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/kdc_preauth.c
src/lib/kadm5/logger.c