more
This commit is contained in:
parent
69acee11ac
commit
96c053c6cf
|
@ -55,12 +55,23 @@ void tmsgInitMsgDecoder(SMsgDecoder *pMD, td_endian_t endian, uint8_t *data, int
|
||||||
}
|
}
|
||||||
|
|
||||||
void tmsgClearMsgDecoder(SMsgDecoder *pMD) {
|
void tmsgClearMsgDecoder(SMsgDecoder *pMD) {
|
||||||
struct SMDFreeListNode *pNode;
|
{
|
||||||
for (;;) {
|
struct SMDFreeListNode *pNode;
|
||||||
pNode = TD_SLIST_HEAD(&(pMD->freeList));
|
for (;;) {
|
||||||
if (TD_IS_NULL(pNode)) break;
|
pNode = TD_SLIST_HEAD(&(pMD->freeList));
|
||||||
TD_SLIST_POP(&(pMD->freeList));
|
if (TD_IS_NULL(pNode)) break;
|
||||||
free(pNode);
|
TD_SLIST_POP(&(pMD->freeList));
|
||||||
|
free(pNode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
struct SMDListNode *pNode;
|
||||||
|
for (;;) {
|
||||||
|
pNode = TD_SLIST_HEAD(&(pMD->dStack));
|
||||||
|
if (TD_IS_NULL(pNode)) break;
|
||||||
|
TD_SLIST_POP(&(pMD->dStack));
|
||||||
|
free(pNode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue