summaryrefslogtreecommitdiff
path: root/lib/ldb/tests/ldb_kv_ops_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ldb/tests/ldb_kv_ops_test.c')
-rw-r--r--lib/ldb/tests/ldb_kv_ops_test.c4
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);