From: Ken Raeburn Date: Thu, 8 Jun 2006 20:01:44 +0000 (+0000) Subject: Don't call k5_mutex_destroy when krb5_rc_resolve_type fails, because that's X-Git-Tag: krb5-1.5-beta1~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5290e3166212a245ba7b3353a26305510829649a;p=krb5.git Don't call k5_mutex_destroy when krb5_rc_resolve_type fails, because that's where the mutex would've been initialized. Reported by Shawn Emery. ticket: 3332 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18089 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/rcache/rc_base.c b/src/lib/krb5/rcache/rc_base.c index e9f9505c5..ad5c4e93c 100644 --- a/src/lib/krb5/rcache/rc_base.c +++ b/src/lib/krb5/rcache/rc_base.c @@ -119,7 +119,6 @@ krb5_rc_default(krb5_context context, krb5_rcache *id) if ((retval = krb5_rc_resolve_type(context, id, krb5_rc_default_type(context)))) { - k5_mutex_destroy(&(*id)->lock); FREE(*id); return retval; } @@ -157,7 +156,6 @@ krb5_error_code krb5_rc_resolve_full(krb5_context context, krb5_rcache *id, char if ((retval = krb5_rc_resolve_type(context, id,type))) { FREE(type); - k5_mutex_destroy(&(*id)->lock); FREE(*id); return retval; }