Fix subkey memory leak in krb5_get_credentials
authorGreg Hudson <ghudson@mit.edu>
Fri, 9 Dec 2011 17:57:52 +0000 (17:57 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 9 Dec 2011 17:57:52 +0000 (17:57 +0000)
commit29c3b20975d80aa67ee0687d7497c1dd9ed402f5
tree03e77a56af8dac38bd15d6c3dd7ef0da5d6ceb31
parent50fb5d3192e68abf02d2c1dbebe51b4eb268972c
Fix subkey memory leak in krb5_get_credentials

If a get_credentials operation requires multiple TGS requests, we need
to free the subkey from previous requests before saving a new one.

ticket: 7049
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25536 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/get_creds.c