From: Simo Sorce Date: Mon, 16 Oct 2006 12:30:02 +0000 (+0000) Subject: r19337: never alloc on module unless you mean to attach a context to X-Git-Tag: samba-4.0.0alpha6~801^3~4465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd82e3f39b71bf37a2aa0d63cc127e89fb8dd438;p=thirdparty%2Fsamba.git r19337: never alloc on module unless you mean to attach a context to it to keep the data around as long as the module lives (This used to be commit d2073c1f7e1bc674358df5da0dc09e183b4b8712) --- diff --git a/source4/dsdb/samdb/ldb_modules/entryUUID.c b/source4/dsdb/samdb/ldb_modules/entryUUID.c index 215d777d00b..38f366dfa2c 100644 --- a/source4/dsdb/samdb/ldb_modules/entryUUID.c +++ b/source4/dsdb/samdb/ldb_modules/entryUUID.c @@ -510,7 +510,7 @@ static int find_base_dns(struct ldb_module *module, "namingContexts", NULL }; - req = talloc(module, struct ldb_request); + req = talloc(entryUUID_private, struct ldb_request); if (req == NULL) { ldb_set_errstring(module->ldb, "Out of Memory"); return LDB_ERR_OPERATIONS_ERROR;