From d167fb40899c8b2f9919455f40e95e00adc8e1e9 Mon Sep 17 00:00:00 2001 From: Swen Schillig Date: Mon, 29 Jul 2019 09:50:24 +0200 Subject: [PATCH] ldb: Fix mem allocation in torture test to satisfy sanitizer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Swen Schillig Reviewed-by: Andrew Bartlett Reviewed-by: Matthias Dieter Wallnöfer --- source4/torture/ldb/ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c index 1de24cbc7ed..f377f9f80e3 100644 --- a/source4/torture/ldb/ldb.c +++ b/source4/torture/ldb/ldb.c @@ -1744,7 +1744,7 @@ static bool torture_ldb_unpack_and_filter(struct torture_context *torture, struct torture_suite *torture_ldb(TALLOC_CTX *mem_ctx) { int i; - struct ldb_val *bins = talloc_array(NULL, struct ldb_val, 2); + struct ldb_val *bins = talloc_array(mem_ctx, struct ldb_val, 2); struct torture_suite *suite = torture_suite_create(mem_ctx, "ldb"); if (suite == NULL) { -- 2.47.3