r19328: another leak plugged ....
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Oct 2006 11:12:13 +0000 (11:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:10 +0000 (14:21 -0500)
(This used to be commit f57535b9c2214e58c71084fcb9d74848e7d26b89)

source4/dsdb/samdb/ldb_modules/samldb.c

index 8cf865bd3efd71f8460733491e419b15d6ff892d..f6070d518c003924ca8e3b0377add984b7544ef7 100644 (file)
@@ -751,7 +751,7 @@ static int samldb_add(struct ldb_module *module, struct ldb_request *req)
                return ldb_next_request(module, req);
        }
 
-       down_req = talloc(module, struct ldb_request);
+       down_req = talloc(req, struct ldb_request);
        if (down_req == NULL) {
                return LDB_ERR_OPERATIONS_ERROR;
        }