From fe164a08ddfee8efd802ed27a90f24e8afe2789a Mon Sep 17 00:00:00 2001 From: Jamie McClymont Date: Mon, 8 Jan 2018 13:56:03 +1300 Subject: [PATCH] selftest: close connections after tests in samba4.ldap.secdesc.python This test suite had a memory impact of around 2.2GB, from LDAP connection handlers under the standard process model. Signed-off-by: Jamie McClymont Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Mon Jan 8 08:02:15 CET 2018 on sn-devel-144 --- source4/dsdb/tests/python/sec_descriptor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/dsdb/tests/python/sec_descriptor.py b/source4/dsdb/tests/python/sec_descriptor.py index 2f024187713..79cbea75f85 100755 --- a/source4/dsdb/tests/python/sec_descriptor.py +++ b/source4/dsdb/tests/python/sec_descriptor.py @@ -150,8 +150,13 @@ showInAdvancedViewOnly: TRUE self.schema_dn = self.ldb_admin.get_schema_basedn().get_linearized() self.domain_sid = security.dom_sid(self.ldb_admin.get_domain_sid()) self.sd_utils = sd_utils.SDUtils(self.ldb_admin) + self.addCleanup(self.delete_admin_connection) print "baseDN: %s" % self.base_dn + def delete_admin_connection(self): + del self.sd_utils + del self.ldb_admin + ################################################################################################ ## Tests for DOMAIN -- 2.34.1