From cbb0f881ac50fd8704769de45e1dd66a0e2ff6a9 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 5 Mar 2011 22:22:00 +0300 Subject: dsdb: acl_read fix a missed talloc_steal --- source4/dsdb/samdb/ldb_modules/acl_read.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/acl_read.c b/source4/dsdb/samdb/ldb_modules/acl_read.c index 4ed057cf63..ae618ec639 100644 --- a/source4/dsdb/samdb/ldb_modules/acl_read.c +++ b/source4/dsdb/samdb/ldb_modules/acl_read.c @@ -192,6 +192,7 @@ static int aclread_callback(struct ldb_request *req, struct ldb_reply *ares) bool to_remove = aclread_is_inaccessible(&msg->elements[i]); if (!to_remove) { ret_msg->elements[k] = msg->elements[i]; + talloc_steal(ret_msg->elements, msg->elements[i].name); talloc_steal(ret_msg->elements, msg->elements[i].values); k++; } -- cgit