CIDER: Plug some memory leak

This commit is contained in:
Holger Vogt 2023-06-02 22:30:27 +02:00
parent 67b2ddbad5
commit fc169fe23f
1 changed files with 9 additions and 1 deletions

View File

@ -81,8 +81,16 @@ TWOdestroy(TWOdevice *pDevice)
}
}
if (pDevice->pFirstContact) {
struct sTWOcontact* pFCtmp = pDevice->pFirstContact;
while (pFCtmp) {
struct sTWOcontact* pFCtmpnext = pFCtmp->next;
FREE(pFCtmp);
pFCtmp = pFCtmpnext;
}
}
/* destroy the contacts & channels */
/* destroy the channels */
/* NOT IMPLEMENTED */
FREE( pDevice );