mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
whisper: fix memalloc issue that slipped in
This commit is contained in:
parent
fd8a2786d4
commit
9f013f98e9
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ func (api *PublicWhisperAPI) NewMessageFilter(req Criteria) (string, error) {
|
|||
if len(req.Topics) > 0 {
|
||||
topics = make([][]byte, len(req.Topics))
|
||||
for i, topic := range req.Topics {
|
||||
topics = append(topics, make([]byte, 0, len(topic)))
|
||||
topics[i] = make([]byte, 0, len(topic))
|
||||
copy(topics[i], topic[:])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue