Fix a minor memory leak in kadmin
authorGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:26:01 +0000 (19:26 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 23 Jun 2011 19:26:01 +0000 (19:26 +0000)
commit63ec3a4b97a3b00ea34d6a9f84d4b7b34383a645
tree861bbcc0c48b11c6a13c5b9fa47decd97a5eadbd
parentf3f4677b4970ddbcdcc5e4da6b6b48111fbd7dfd
Fix a minor memory leak in kadmin

kadmin_getprinc() was using the variable "canon" for two purposes.
After r22785, canon wasn't freed between constructions, so the first
value was leaked.  Fix by using separate variables for separate
strings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24987 dc483132-0cff-0310-8789-dd5450dbe970
src/kadmin/cli/kadmin.c