lib: ldb: Remove use of talloc_autofree_context().
authorJeremy Allison <jra@samba.org>
Tue, 6 Nov 2018 00:57:51 +0000 (16:57 -0800)
committerAmitay Isaacs <amitay@samba.org>
Tue, 6 Nov 2018 06:16:15 +0000 (07:16 +0100)
Just use NULL in test case. talloc_autofree_context() is deprecated.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
lib/ldb/tests/ldb_kv_ops_test.c

index 68c04863db65c238a52a90a1fefde03efb4b5c87..d6a4dc058e5348fa3c3d77080d334b2d2a3ce78d 100644 (file)
@@ -192,8 +192,8 @@ static int parse(struct ldb_val key,
 {
        struct ldb_val* read = private_data;
 
-       /* Yes, we essentially leak this.  That is OK */
-       read->data = talloc_size(talloc_autofree_context(),
+       /* Yes, we leak this.  That is OK */
+       read->data = talloc_size(NULL,
                                 data.length);
        assert_non_null(read->data);