s4/param: Fix provision_get_schema leaking python object
authorNoel Power <noel.power@suse.com>
Fri, 15 Feb 2019 10:04:23 +0000 (10:04 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 21 Feb 2019 03:09:19 +0000 (04:09 +0100)
commit5f9a5ef262b4700b47bfb931b6b096f56aa56b15
treecf817347b35d08d8c13af59a22bcb82bf9c45f3b
parent8c92702d152e16277b658be81496a60841a03e85
s4/param: Fix provision_get_schema leaking python object

provision_get_schema returns a ldb_context object which is stored
in a python object. As a result the parent python object is never
decrefed and probably not released ever.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/schema/tests/schema_syntax.c
source4/libnet/libnet_vampire.c
source4/param/provision.c