From a96c8c23553489ff86be1257bd2cce81b78e1d5b Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sat, 26 Sep 2009 01:36:01 +0300 Subject: s4/asn1: local TALLOC_CTX should be child of torture_context --- lib/util/tests/asn1_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/tests/asn1_tests.c b/lib/util/tests/asn1_tests.c index ab2e242be3..56363c236d 100644 --- a/lib/util/tests/asn1_tests.c +++ b/lib/util/tests/asn1_tests.c @@ -102,7 +102,7 @@ static bool test_ber_write_OID_String(struct torture_context *tctx) TALLOC_CTX *mem_ctx; struct oid_data *data = oid_data_ok; - mem_ctx = talloc_new(NULL); + mem_ctx = talloc_new(tctx); for (i = 0; i < ARRAY_SIZE(oid_data_ok); i++) { torture_assert(tctx, ber_write_OID_String(&blob, data[i].oid), @@ -159,7 +159,7 @@ static bool test_ber_write_partial_OID_String(struct torture_context *tctx) TALLOC_CTX *mem_ctx; struct oid_data *data = oid_data_ok; - mem_ctx = talloc_new(NULL); + mem_ctx = talloc_new(tctx); /* ber_write_partial_OID_String() should work with not partial OIDs also */ for (i = 0; i < ARRAY_SIZE(oid_data_ok); i++) { -- cgit