s3: SMB2 : Fix leak of blocking lock records in the database.
commitcee1531e551e5ccd5ccd4a55de226ad686919486
authorJeremy Allison <jra@samba.org>
Thu, 26 Jun 2014 19:08:46 +0000 (26 12:08 -0700)
committerVolker Lendecke <vl@samba.org>
Mon, 30 Jun 2014 12:59:16 +0000 (30 14:59 +0200)
tree048a2d01ce3286f1cde26402a721cf8d127264ce
parent1a02a1e6aa15c028a848585d66cecbbdda8015b3
s3: SMB2 : Fix leak of blocking lock records in the database.

Based on a fix from Hemanth Thummala <hemanth.thummala@gmail.com>
Bug #10673 - Increasing response times for byte range unlock requests.

The previous refactoring makes it obvious we need to call
remove_pending_lock() in all places where we are returning
from the SMB2 blocking lock call.

https://bugzilla.samba.org/show_bug.cgi?id=10673

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jun 30 14:59:16 CEST 2014 on sn-devel-104
source3/smbd/smb2_lock.c