From c91f38160cdd2238d46bb0f3a307eb1d807cad41 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 29 Dec 2013 14:52:30 +0100 Subject: [PATCH] Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error --- libraries/liblmdb/mdb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c2c374bbc5..a8d0428ad2 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2202,10 +2202,8 @@ mdb_txn_renew0(MDB_txn *txn) if (!(env->me_flags & MDB_LIVE_READER)) { rc = mdb_reader_pid(env, Pidset, pid); - if (rc) { - UNLOCK_MUTEX_R(env); + if (rc) return rc; - } env->me_flags |= MDB_LIVE_READER; } -- 2.39.5