Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
86ae040b
Unverified
Commit
86ae040b
authored
Feb 27, 2018
by
Matthew Fisher
Committed by
GitHub
Feb 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3491 from oilbeater/fix-defer-in-loop
defer in loop may cause resource leak
parents
e13eba12
757db3a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
expand.go
pkg/chartutil/expand.go
+2
-1
No files found.
pkg/chartutil/expand.go
View file @
86ae040b
...
@@ -63,11 +63,12 @@ func Expand(dir string, r io.Reader) error {
...
@@ -63,11 +63,12 @@ func Expand(dir string, r io.Reader) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
defer
file
.
Close
()
_
,
err
=
io
.
Copy
(
file
,
tr
)
_
,
err
=
io
.
Copy
(
file
,
tr
)
if
err
!=
nil
{
if
err
!=
nil
{
file
.
Close
()
return
err
return
err
}
}
file
.
Close
()
}
}
return
nil
return
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment