diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-03-25 19:17:34 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-03-26 13:01:29 -0400 |
commit | 58871c23ee9b5a9201f479127fda65e7fcf06310 (patch) | |
tree | 4f12cad0173686fd11f5edbbe849b741c739709e /src/kdc/kdc_util.c | |
parent | 47ec1ab146334f94b97e6572904a14ad67ee2524 (diff) | |
download | krb5-proxymech.tar.gz krb5-proxymech.tar.xz krb5-proxymech.zip |
Fix minor KDC memory leaksproxymech
Fix some small memory leaks which happen only in rare failure
conditions. Reported by Will Fiveash <will.fiveash@oracle.com>.
Diffstat (limited to 'src/kdc/kdc_util.c')
-rw-r--r-- | src/kdc/kdc_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index 930aa7a5e..4e85f6875 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -1349,8 +1349,10 @@ kdc_make_s4u2self_rep(krb5_context context, code = add_pa_data_element(context,&padata, &reply_encpart->enc_padata, FALSE); - if (code != 0) + if (code != 0) { + free(padata.contents); goto cleanup; + } } cleanup: |