From 59d98919482b2a101c4092428a4c0092abb797a1 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 29 Mar 2019 13:27:20 -0700 Subject: [PATCH] Add the missing unlock in the error path of extent_register. --- src/extent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extent.c b/src/extent.c index 3396a9d6..62086c7d 100644 --- a/src/extent.c +++ b/src/extent.c @@ -796,6 +796,7 @@ extent_register_impl(tsdn_t *tsdn, extent_t *extent, bool gdump_add) { if (extent_rtree_leaf_elms_lookup(tsdn, rtree_ctx, extent, false, true, &elm_a, &elm_b)) { + extent_unlock(tsdn, extent); return true; }