summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-21 00:39:26 -0500
committerLuke Kanies <luke@madstop.com>2008-03-21 00:39:26 -0500
commit18320b8e3271f7d1d1702907be1ff420acfc8d2b (patch)
tree159cde5158579fc3b0ae6e502c25b32752d7561c /ext
parentf6325dceb3b10c300f421f540281bbd64bdc091e (diff)
downloadpuppet-18320b8e3271f7d1d1702907be1ff420acfc8d2b.tar.gz
puppet-18320b8e3271f7d1d1702907be1ff420acfc8d2b.tar.xz
puppet-18320b8e3271f7d1d1702907be1ff420acfc8d2b.zip
Found all instances of methods where split() is used without
any local variables and added a local variable -- see http://snurl.com/21zf8. My own testing showed that this caused memory growth to level off at a reasonable level. Note that the link above says the problem is only with class methods, but my own testing showed that it's any method that meets these criteria. This is not a functional change, but should hopefully be the last nail in the coffin of #1131.
Diffstat (limited to 'ext')
-rwxr-xr-xext/puppet-test3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/puppet-test b/ext/puppet-test
index 117a5a11a..dc0aeca92 100755
--- a/ext/puppet-test
+++ b/ext/puppet-test
@@ -216,10 +216,11 @@ end
Suite.new :local_catalog, "Local catalog handling" do
def prepare
+ @node = Puppet::Node.find(Puppet[:certname])
end
newtest :compile, "Compiled catalog" do
- Puppet::Node::Catalog.find(Puppet[:certname])
+ Puppet::Node::Catalog.find(@node)
end
end