From b1f7164aa86789a2cdca4ccbe9395abfda0751cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 23 Nov 2011 17:43:35 +0100 Subject: s3: Fix a valgrind error Autobuild-User: Volker Lendecke Autobuild-Date: Wed Nov 23 19:17:20 CET 2011 on sn-devel-104 --- source3/locking/locking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit