From: Volker Lendecke Date: Wed, 23 Nov 2011 16:43:35 +0000 (+0100) Subject: s3: Fix a valgrind error X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=b1f7164aa86789a2cdca4ccbe9395abfda0751cb s3: Fix a valgrind error Autobuild-User: Volker Lendecke Autobuild-Date: Wed Nov 23 19:17:20 CET 2011 on sn-devel-104 --- diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 1062f04f162..611b2d29901 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; }