From: Jeremy Allison Date: Tue, 6 Nov 2018 00:57:51 +0000 (-0800) Subject: lib: ldb: Remove use of talloc_autofree_context(). X-Git-Tag: tdb-1.3.17~896 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=698a9ef36e0b0f24c1cfb07ac554c942960fac35;p=thirdparty%2Fsamba.git lib: ldb: Remove use of talloc_autofree_context(). Just use NULL in test case. talloc_autofree_context() is deprecated. Signed-off-by: Jeremy Allison Reviewed-by: Amitay Isaacs --- 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);