aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/memory_database.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-01-20 22:06:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-01-20 22:06:28 +0800
commitf3d4ce0d164f7b17a143304e2b94421573d596a4 (patch)
tree9c4dab5e403b3c71cc1a95c59b23cf8bba1bc0ba /ethdb/memory_database.go
parent886478b18b73bbe8421531f1a71664a2bc0f5eeb (diff)
downloaddexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.tar.gz
dexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.tar.zst
dexon-f3d4ce0d164f7b17a143304e2b94421573d596a4.zip
core/state, ethdb, trie: test intermediate secure key leak, fix memdb bug
Diffstat (limited to 'ethdb/memory_database.go')
-rw-r--r--ethdb/memory_database.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go
index 45423ed73..a729f5233 100644
--- a/ethdb/memory_database.go
+++ b/ethdb/memory_database.go
@@ -107,7 +107,7 @@ func (b *memBatch) Put(key, value []byte) error {
b.lock.Lock()
defer b.lock.Unlock()
- b.writes = append(b.writes, kv{key, common.CopyBytes(value)})
+ b.writes = append(b.writes, kv{common.CopyBytes(key), common.CopyBytes(value)})
return nil
}