Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes.

This commit is contained in:
Brian Taylor 2023-06-29 17:43:34 -07:00
parent ec895536a6
commit fe26418374
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ TWOdestroy(TWOdevice *pDevice)
struct sTWOcontact* pFCtmp = pDevice->pFirstContact;
while (pFCtmp) {
struct sTWOcontact* pFCtmpnext = pFCtmp->next;
if (pFCtmp->pNodes) {
FREE(pFCtmp->pNodes);
}
FREE(pFCtmp);
pFCtmp = pFCtmpnext;
}