summaryrefslogtreecommitdiffstats
path: root/source/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-06 14:21:25 +0100
committerVolker Lendecke <vl@samba.org>2008-01-10 13:19:58 +0100
commit65dd869bea351010c67f02046ae4134bdada1a4c (patch)
tree1a624f57e64d7312d83cb14ecc1dfe673d8535c8 /source/locking
parent88d6683872f4bb9c3074280f385f73c7af9de784 (diff)
downloadsamba-65dd869bea351010c67f02046ae4134bdada1a4c.tar.gz
samba-65dd869bea351010c67f02046ae4134bdada1a4c.tar.xz
samba-65dd869bea351010c67f02046ae4134bdada1a4c.zip
use talloc_tos in a few more places
Diffstat (limited to 'source/locking')
-rw-r--r--source/locking/locking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index 2ec8cd29386..ce7ba8fa663 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -925,7 +925,7 @@ bool get_delete_on_close_flag(struct file_id id)
bool result;
struct share_mode_lock *lck;
- if (!(lck = fetch_share_mode_unlocked(NULL, id, NULL, NULL))) {
+ if (!(lck = fetch_share_mode_unlocked(talloc_tos(), id, NULL, NULL))) {
return False;
}
result = lck->delete_on_close;
@@ -1328,7 +1328,7 @@ bool set_delete_on_close(files_struct *fsp, bool delete_on_close, UNIX_USER_TOKE
return True;
}
- lck = get_share_mode_lock(NULL, fsp->file_id, NULL, NULL);
+ lck = get_share_mode_lock(talloc_tos(), fsp->file_id, NULL, NULL);
if (lck == NULL) {
return False;
}