Skip to content

Fix RP2 Memory Leak - #1070

Merged
TMRh20 merged 2 commits into
masterfrom
Fix-RP2_Memory_Leak
May 23, 2026
Merged

TMRh20 merged 2 commits into
masterfrom
Fix-RP2_Memory_Leak

Conversation

@TMRh20

@TMRh20 TMRh20 commented May 23, 2026

Copy link
Copy Markdown
Member

If calling begin() multiple times on RP2 (Pico) the spi object was allocated but never deleted causing a memory leak

@github-actions

github-actions Bot commented May 23, 2026 •

Copy link
Copy Markdown
Contributor

Memory usage change @ 302f006

Board Flash % RAM for global variables %
arduino:avr:nano 0 - 0 0 - 0 0 - 0 0 - 0
arduino:samd:mkrzero 0 - 0 0 - 0 0 - 0 0 - 0
Click for full report per board

arduino:avr:nano

Sketch Flash % RAM for global variables %
examples/GettingStarted 0 0 0 0
examples/AcknowledgementPayloads 0 0 0 0
examples/ManualAcknowledgements 0 0 0 0
examples/StreamingData 0 0 0 0
examples/MulticeiverDemo 0 0 0 0
examples/InterruptConfigure 0 0 0 0
examples/scanner 0 0 0 0
examples/encodeRadioDetails 0 0 0 0

arduino:samd:mkrzero

Sketch Flash % RAM for global variables %
examples/GettingStarted 0 0 0 0
examples/AcknowledgementPayloads 0 0 0 0
examples/ManualAcknowledgements 0 0 0 0
examples/StreamingData 0 0 0 0
examples/MulticeiverDemo 0 0 0 0
examples/InterruptConfigure 0 0 0 0
examples/scanner 0 0 0 0
examples/encodeRadioDetails 0 0 0 0

Comment thread RF24.cpp Outdated
Co-authored-by: Brendan <2bndy5@gmail.com>
@TMRh20
TMRh20 marked this pull request as ready for review May 23, 2026 12:43
@TMRh20
TMRh20 merged commit 6c09f7f into master May 23, 2026
77 checks passed
@TMRh20
TMRh20 deleted the Fix-RP2_Memory_Leak branch May 23, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants