aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dexcon-simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-01-18 19:10:55 +0800
committerGitHub <noreply@github.com>2019-01-18 19:10:55 +0800
commit632fa7914a2e6dbf1812581e0e769c93189771ca (patch)
treee8b415b01de87a6457a65ba191dc90f3ab8565e0 /cmd/dexcon-simulation
parent9ff8f0cdc45a7b294ae71a28e7e205bb67e559cb (diff)
downloaddexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.gz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.bz2
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.lz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.xz
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.tar.zst
dexon-consensus-632fa7914a2e6dbf1812581e0e769c93189771ca.zip
misc: Add gosec to check security issues (#424)
* Add gosec to tools * Run security check to ci * Fix secrity issues
Diffstat (limited to 'cmd/dexcon-simulation')
-rw-r--r--cmd/dexcon-simulation/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/dexcon-simulation/main.go b/cmd/dexcon-simulation/main.go
index a9a8b10..d79f60e 100644
--- a/cmd/dexcon-simulation/main.go
+++ b/cmd/dexcon-simulation/main.go
@@ -84,6 +84,7 @@ func main() {
if err := pprof.WriteHeapProfile(f); err != nil {
log.Fatal("could not write memory profile: ", err)
}
+ // #nosec G104
f.Close()
}
}