mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-06-26 14:01:40 +00:00
free packet on parse failure
This commit is contained in:
@@ -1981,6 +1981,7 @@ void MyMesh::handleCmdFrame(size_t len) {
|
||||
sendPacket(pkt, priority, 0);
|
||||
writeOKFrame();
|
||||
} else {
|
||||
_mgr->free(pkt);
|
||||
writeErrFrame(ERR_CODE_ILLEGAL_ARG);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user