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 1062f04f16..611b2d2990 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -1610,7 +1610,7 @@ void set_delete_on_close_lck(files_struct *fsp,
/* Delete this entry. */
TALLOC_FREE(dt->delete_token);
*dt = lck->delete_tokens[
- lck->num_delete_tokens];
+ lck->num_delete_tokens-1];
lck->num_delete_tokens -= 1;
return;
}