ldb: Free memory in torture test to satisfy sanitizer
authorSwen Schillig <swen@linux.ibm.com>
Mon, 29 Jul 2019 12:55:10 +0000 (14:55 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Aug 2019 10:08:32 +0000 (10:08 +0000)
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>
source4/torture/ldb/ldb.c

index f377f9f..ad544be 100644 (file)
@@ -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;
 }