lib/ldb: Allocate opaque on ldb_ctx
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2024 00:02:54 +0000 (13:02 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Mar 2024 02:54:36 +0000 (02:54 +0000)
commit195c0e0d4912d37a8404e83e0e3357bb47b61e0d
treeff6e4b7f6498e4ba966ff04faf74da7a445c5984
parentb42043897a6ebf52f70c5bdcdcfe6a18f8ad6fd8
lib/ldb: Allocate opaque on ldb_ctx

Just in case this LDB is given away into the C code, that opaque must live
as long as the LDB itself, not the python wrapper object.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
lib/ldb/pyldb.c