From: John Kohl Date: Tue, 1 May 1990 17:05:29 +0000 (+0000) Subject: use xfree X-Git-Tag: krb5-1.0-alpha2~748 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bdea09791caf623568d8b84e0bf16dbf98581915;p=krb5.git use xfree fix openclose stuff git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@648 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/fcc_reslv.c b/src/lib/krb5/ccache/file/fcc_reslv.c index 2aa0a4f38..1a4b93d9c 100644 --- a/src/lib/krb5/ccache/file/fcc_reslv.c +++ b/src/lib/krb5/ccache/file/fcc_reslv.c @@ -11,7 +11,7 @@ */ #if !defined(lint) && !defined(SABER) -static char fcc_resolve_c[] = "$Id$"; +static char fcc_reslve_c[] = "$Id$"; #endif /* !lint && !SABER */ #include @@ -55,7 +55,7 @@ krb5_fcc_resolve (id, residual) lid->data = (krb5_fcc_data *) malloc(sizeof(krb5_fcc_data)); if (((krb5_fcc_data *) lid->data) == NULL) { - free(lid); + xfree(lid); return KRB5_NOMEM; } @@ -63,12 +63,14 @@ krb5_fcc_resolve (id, residual) malloc(strlen(residual) + 1); if (((krb5_fcc_data *) lid->data)->filename == NULL) { - free(((krb5_fcc_data *) lid->data)); - free(lid); + xfree(((krb5_fcc_data *) lid->data)); + xfree(lid); return KRB5_NOMEM; } - ((krb5_fcc_data *) lid->data)->flags = 0; + /* default to open/close on every trn */ + ((krb5_fcc_data *) lid->data)->flags = KRB5_TC_OPENCLOSE; + ((krb5_fcc_data *) lid->data)->fd = -1; /* Set up the filename */ strcpy(((krb5_fcc_data *) lid->data)->filename, residual);