mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
fix: do not attempt to free nil rust trace (#845)
This commit is contained in:
parent
aafca83598
commit
f40dca0b80
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 5 // Major version component of the current release
|
VersionMajor = 5 // Major version component of the current release
|
||||||
VersionMinor = 4 // Minor version component of the current release
|
VersionMinor = 4 // Minor version component of the current release
|
||||||
VersionPatch = 7 // Patch version component of the current release
|
VersionPatch = 8 // Patch version component of the current release
|
||||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ func (p *Pipeline) encodeStage(traces <-chan *BlockCandidate) <-chan *BlockCandi
|
||||||
encodeTimer.UpdateSince(encodeStart)
|
encodeTimer.UpdateSince(encodeStart)
|
||||||
|
|
||||||
stallStart := time.Now()
|
stallStart := time.Now()
|
||||||
if sendCancellable(downstreamCh, trace, p.ctx.Done()) {
|
if sendCancellable(downstreamCh, trace, p.ctx.Done()) && trace.RustTrace != nil {
|
||||||
// failed to send the trace downstream, free it here.
|
// failed to send the trace downstream, free it here.
|
||||||
circuitcapacitychecker.FreeRustTrace(trace.RustTrace)
|
circuitcapacitychecker.FreeRustTrace(trace.RustTrace)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue