diff options
author | Jeremy Allison <jra@samba.org> | 2018-11-05 16:57:51 -0800 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-11-06 07:16:15 +0100 |
commit | 698a9ef36e0b0f24c1cfb07ac554c942960fac35 (patch) | |
tree | a53e8fc23c61756837c2047ba973115a6b0bcade /lib | |
parent | f420e8d56fac5b74712700a88ad59da069ef4c92 (diff) | |
download | samba-698a9ef36e0b0f24c1cfb07ac554c942960fac35.tar.gz |
lib: ldb: Remove use of talloc_autofree_context().
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/tests/ldb_kv_ops_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c index 68c04863db6..d6a4dc058e5 100644 --- a/lib/ldb/tests/ldb_kv_ops_test.c +++ b/lib/ldb/tests/ldb_kv_ops_test.c @@ -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); |