git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1685ee3
)
s3: Fix the talloc hierarchy in notify_remove_onelevel
author
Volker Lendecke
<vl@samba.org>
Thu, 5 Nov 2009 13:29:05 +0000
(14:29 +0100)
committer
Volker Lendecke
<vl@samba.org>
Thu, 5 Nov 2009 13:44:25 +0000
(14:44 +0100)
We want to free the record early, not when talloc_tos() is free'ed.
source3/smbd/notify_internal.c
patch
|
blob
|
history
diff --git
a/source3/smbd/notify_internal.c
b/source3/smbd/notify_internal.c
index 973db7b7b1d1bca4ff0443965fda61a5977d36db..3f61de579de0ce51ba928473155627ba894077aa 100644
(file)
--- a/
source3/smbd/notify_internal.c
+++ b/
source3/smbd/notify_internal.c
@@
-551,7
+551,7
@@
NTSTATUS notify_remove_onelevel(struct notify_context *notify,
}
rec = notify->db_onelevel->fetch_locked(
- notify->db_onelevel,
talloc_tos()
,
+ notify->db_onelevel,
array
,
make_tdb_data((uint8_t *)fid, sizeof(*fid)));
if (rec == NULL) {
DEBUG(10, ("notify_remove_onelevel: fetch_locked for %s failed"