From 645c8eb0270ffe8bc7b2ee9dcfd140ac8bb51e7e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 5 Nov 2009 14:29:05 +0100 Subject: [PATCH] s3: Fix the talloc hierarchy in notify_remove_onelevel We want to free the record early, not when talloc_tos() is free'ed. (cherry picked from commit cb5145e18aac219e27010637632f060c59852b7f) Signed-off-by: Stefan Metzmacher --- source3/smbd/notify_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 243335c9fc61..c8f8616d8b46 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -599,7 +599,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" -- 2.34.1