Browse Source
Merge pull request #2722 from liamcottle/fix/free-packet-on-parse-failure
Fix: CMD_SEND_RAW_PACKET not freeing packet on parse failure
pull/2333/merge
ripplebiz
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
examples/companion_radio/MyMesh.cpp
|
|
|
@ -1981,6 +1981,7 @@ void MyMesh::handleCmdFrame(size_t len) { |
|
|
|
sendPacket(pkt, priority, 0); |
|
|
|
writeOKFrame(); |
|
|
|
} else { |
|
|
|
releasePacket(pkt); |
|
|
|
writeErrFrame(ERR_CODE_ILLEGAL_ARG); |
|
|
|
} |
|
|
|
} else { |
|
|
|
|