1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/locking
Hemanth Thummala 7a725eea25 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
2016-05-27 18:43:31 +02:00
..
brlock.c s3: locking: Add a const struct lock_context * paramter to set_posix_lock_posix_flavour() 2016-05-21 01:28:27 +02:00
leases_db.c leases_db: don't leak lock_path onto talloc tos 2015-01-12 19:22:30 +01:00
leases_db.h s3:locking: Change the data model for leases_db to cope with dynamic path renames. 2014-12-09 03:44:04 +01:00
locking.c s3:smbd: convert file_struct.posix_open to a bitmap with flags 2015-12-01 20:45:20 +01:00
posix.c s3: VFS: Map process-associated lock operation to open file description lock operation. 2016-05-21 01:28:28 +02:00
proto.h s3: locking: Add a const struct lock_context * paramter to set_posix_lock_posix_flavour() 2016-05-21 01:28:27 +02:00
share_mode_lock.c Fix memory leak in share mode locking. 2016-05-27 18:43:31 +02:00