From: Kurt Zeilenga Date: Mon, 5 Apr 1999 18:21:31 +0000 (+0000) Subject: Share unlock and return between true and false paths. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~246 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=66164a1b5806f79dbc549e9eef8369f1a16702d4;p=openldap Share unlock and return between true and false paths. --- diff --git a/servers/slapd/back-ldbm/cache.c b/servers/slapd/back-ldbm/cache.c index 5386735fcc..034301cebe 100644 --- a/servers/slapd/back-ldbm/cache.c +++ b/servers/slapd/back-ldbm/cache.c @@ -553,17 +553,12 @@ try_again: LRU_ADD( cache, ep ); LEI(ep)->lei_refcnt++; - - /* free cache mutex */ - ldap_pvt_thread_mutex_unlock( &cache->c_mutex ); - - return( ep ); } /* free cache mutex */ ldap_pvt_thread_mutex_unlock( &cache->c_mutex ); - return( NULL ); + return( ep ); } /*