]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: properly free the notify_onelevel record
authorVolker Lendecke <vl@samba.org>
Wed, 14 Mar 2012 12:19:22 +0000 (13:19 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Mar 2012 10:00:24 +0000 (11:00 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/notify_internal.c

index 347d3305dfe58aa0b90a56b0d8cb10a0779338e8..985ece36c1c1a06d715a990901da3de310bd3973 100644 (file)
@@ -431,7 +431,7 @@ static void notify_add_onelevel(struct notify_context *notify,
                return;
        }
 
-       rec = dbwrap_fetch_locked(notify->db_onelevel, talloc_tos(),
+       rec = dbwrap_fetch_locked(notify->db_onelevel, array,
                                  make_tdb_data((uint8_t *)&e->dir_id,
                                   sizeof(e->dir_id)));
        if (rec == NULL) {