]> git.ipfire.org Git - thirdparty/samba.git/commit
lib/torture: extend torture_context_init()
authorStefan Metzmacher <metze@samba.org>
Fri, 9 May 2025 08:41:52 +0000 (10:41 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 19 May 2025 09:11:29 +0000 (09:11 +0000)
commitd1bdbaa149e37c437e55d965008491a8aa760b38
treee79cafe873ec04f82f26f9d501e34d22c9c10245
parent087e6af9d21b052c88c2229c66c61441875e021e
lib/torture: extend torture_context_init()

Give it a dedicated talloc parent and avoid
talloc_references, the caller needs to take care
that the lifetime of the arguments is longer.

This makes sure any talloc destructors of torture_context
children run before torture->ev is destroyed.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/torture/torture.c
lib/torture/torture.h
source4/torture/smbtorture.c