]> git.sur5r.net Git - openldap/commitdiff
Share unlock and return between true and false paths.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 1999 18:21:31 +0000 (18:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 1999 18:21:31 +0000 (18:21 +0000)
servers/slapd/back-ldbm/cache.c

index 5386735fcc12d0f8eb86ee089b1be3a636393122..034301cebe4f44b6093e852f267fdaab6181b847 100644 (file)
@@ -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 );
 }
 
 /*