Skip to content

Commit

Permalink
ldb: Free memory 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 84e519f commit f9a3276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source4/torture/ldb/ldb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ static bool torture_ldb_pack_data_v2(struct torture_context *torture)
binary.length,
"packed data not as expected");
talloc_free(expect_bin);
TALLOC_FREE(msg.dn);

return true;
}
Expand Down Expand Up @@ -1505,6 +1506,8 @@ static bool torture_ldb_pack_data_v2_special(struct torture_context *torture)
binary.length,
"packed data not as expected");

TALLOC_FREE(msg.dn);

return true;
}

Expand Down

0 comments on commit f9a3276

Please sign in to comment.