From: Jamie McClymont Date: Mon, 8 Jan 2018 00:56:03 +0000 (+1300) Subject: selftest: close connections after tests in samba4.ldap.secdesc.python X-Git-Tag: talloc-2.1.11~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe164a08ddfee8efd802ed27a90f24e8afe2789a;p=thirdparty%2Fsamba.git 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 --- 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