diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-03-28 02:13:00 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-03-28 02:13:00 -0400 |
commit | 2287d34f626a744808c0bd137f504a45d2c1743b (patch) | |
tree | afecd0bd4a24b0f208c0018bd1c70244e4301cc3 /src/lib | |
parent | c4549f8f91fe53830f1e7d68d6d1f7b1a117a911 (diff) | |
download | krb5-2287d34f626a744808c0bd137f504a45d2c1743b.tar.gz krb5-2287d34f626a744808c0bd137f504a45d2c1743b.tar.xz krb5-2287d34f626a744808c0bd137f504a45d2c1743b.zip |
Fix an error case in krb5int_fcc_new_unique
If we fail to allocate setptr, don't close ret, since we've already
done so.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/krb5/ccache/cc_file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 3879db5566..d39250f89f 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -2061,7 +2061,6 @@ krb5int_fcc_new_unique(krb5_context context, char *template, krb5_ccache *id) k5_cc_mutex_destroy(&data->lock); free(data->filename); free(data); - (void) close(ret); (void) unlink(template); return KRB5_CC_NOMEM; } |