config: make dupped nil for GC reasons

This commit is contained in:
Mitchell Hashimoto 2014-07-18 16:31:32 -07:00
parent 50095612a2
commit 596e0f7f13
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ func (c *Config) Validate() error {
resources[r.Id()] = r
}
dupped = nil
for source, vs := range vars {
for _, v := range vs {
rv, ok := v.(*ResourceVariable)