Skip to content

Commit

Permalink
ldb: Fix mem allocation in torture test to satisfy sanitizer
Browse files Browse the repository at this point in the history
Signed-off-by: Swen Schillig <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Matthias Dieter Wallnöfer <[email protected]>
  • Loading branch information
sswen authored and abartlet committed Aug 8, 2019
1 parent a16477e commit d167fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source4/torture/ldb/ldb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d167fb4

Please sign in to comment.