summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/locking/locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index f0a45c2bcb..3c5ab63b4a 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -357,7 +357,7 @@ BOOL locking_end(void)
}
if (deferred_open_tdb) {
- if (tdb_close(tdb) != 0)
+ if (tdb_close(deferred_open_tdb) != 0)
ret = False;
}