mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
84e519f365
commit
f9a32767b6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user