From 2287d34f626a744808c0bd137f504a45d2c1743b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 28 Mar 2013 02:13:00 -0400 Subject: 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. --- src/lib/krb5/ccache/cc_file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 3879db556..d39250f89 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; } -- cgit