diff options
author | Noel Power <noel.power@suse.com> | 2019-02-15 10:04:23 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-02-21 04:09:19 +0100 |
commit | 5f9a5ef262b4700b47bfb931b6b096f56aa56b15 (patch) | |
tree | cf817347b35d08d8c13af59a22bcb82bf9c45f3b /source4/dsdb/schema/tests | |
parent | 8c92702d152e16277b658be81496a60841a03e85 (diff) | |
download | samba-5f9a5ef262b4700b47bfb931b6b096f56aa56b15.tar.gz |
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>
Diffstat (limited to 'source4/dsdb/schema/tests')
-rw-r--r-- | source4/dsdb/schema/tests/schema_syntax.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/schema/tests/schema_syntax.c b/source4/dsdb/schema/tests/schema_syntax.c index 17e62010e70..b22e110db52 100644 --- a/source4/dsdb/schema/tests/schema_syntax.c +++ b/source4/dsdb/schema/tests/schema_syntax.c @@ -225,6 +225,7 @@ static bool torture_dsdb_syntax_tcase_teardown(struct torture_context *tctx, voi struct torture_dsdb_syntax *priv; priv = talloc_get_type_abort(data, struct torture_dsdb_syntax); + talloc_unlink(priv, priv->ldb); talloc_free(priv); return true; |