Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
734d1c94
Unverified
Commit
734d1c94
authored
Feb 23, 2022
by
Alessandro Ranellucci
Committed by
GitHub
Feb 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple memory leaks caused by files not being closed (#1670)
parent
a025bca3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
arduino/security/signatures.go
arduino/security/signatures.go
+1
-0
i18n/cmd/po/parser.go
i18n/cmd/po/parser.go
+1
-0
No files found.
arduino/security/signatures.go
View file @
734d1c94
...
...
@@ -42,6 +42,7 @@ func VerifyArduinoDetachedSignature(targetPath *paths.Path, signaturePath *paths
if
err
!=
nil
{
panic
(
"could not find bundled signature keys"
)
}
defer
arduinoKeyringFile
.
Close
()
return
VerifySignature
(
targetPath
,
signaturePath
,
arduinoKeyringFile
)
}
...
...
i18n/cmd/po/parser.go
View file @
734d1c94
...
...
@@ -31,6 +31,7 @@ func Parse(filename string) MessageCatalog {
}
file
,
err
:=
os
.
Open
(
filename
)
defer
file
.
Close
()
if
err
!=
nil
{
fmt
.
Println
(
err
.
Error
())
...
...
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