From: Swen Schillig Date: Mon, 29 Jul 2019 07:50:24 +0000 (+0200) Subject: ldb: Fix mem allocation in torture test to satisfy sanitizer X-Git-Tag: tdb-1.4.2~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d167fb40899c8b2f9919455f40e95e00adc8e1e9;p=thirdparty%2Fsamba.git ldb: Fix mem allocation in torture test to satisfy sanitizer Signed-off-by: Swen Schillig Reviewed-by: Andrew Bartlett Reviewed-by: Matthias Dieter Wallnöfer --- 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) {