Fix memory leak in share mode locking.
authorHemanth Thummala <hemanth.thummala@nutanix.com>
Wed, 25 May 2016 06:15:04 +0000 (23:15 -0700)
committerVolker Lendecke <vl@samba.org>
Fri, 27 May 2016 16:43:31 +0000 (18:43 +0200)
commit7a725eea25f905fc5f611e8f3d7cfe414d5cf913
tree0aebaf0f99133a00e5a8f7a9cbffc79642e1ecd9
parent1b3b89345480d16222da00753f973e36e2e0f92d
Fix memory leak in share mode locking.

Not freeing up(and reparenting to NULL context) ndr buffer
used for TDB updates resulting in huge memory leak when there
in high volume of opens and closes happening on same object.

Free the buffer before reparenting its parent to NULL context.

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

Signed-off-by: Hemanth Thummala <hemanth.thummala@nutanix.com>
Signed-off-by: Saji VR <saji.vr@nutanix.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri May 27 18:43:31 CEST 2016 on sn-devel-144
source3/locking/share_mode_lock.c