diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-07-29 14:55:10 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-08-08 10:08:32 +0000 |
commit | f9a32767b690532ed897730e8179dcc84473d148 (patch) | |
tree | 211ef41c08bdf85274dfc31fb682ad07462d709f /source4 | |
parent | 84e519f36559f783af7e1143175ae6b316bd1e75 (diff) | |
download | samba-f9a32767b690532ed897730e8179dcc84473d148.tar.gz |
ldb: Free memory in torture test to satisfy sanitizer
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ldb/ldb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c index f377f9f80e3..ad544beabe6 100644 --- a/source4/torture/ldb/ldb.c +++ b/source4/torture/ldb/ldb.c @@ -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; } @@ -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; } |