Skip to content

Commit 4a01451

Browse files
florianlgnurizen
authored andcommitted
tracer: fix capacity issue (open-telemetry#669)
1 parent eaeb362 commit 4a01451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracer/tracer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ func (t *Tracer) readKernelFrames(kstackID int32) (libpf.Frames, error) {
686686
kstackLen++
687687
}
688688

689-
frames := make(libpf.Frames, kstackLen)
689+
frames := make(libpf.Frames, 0, kstackLen)
690690
for i := uint32(0); i < kstackLen; i++ {
691691
address := libpf.Address(kstackVal[i])
692692
frame := libpf.Frame{

0 commit comments

Comments
 (0)