CIDER: Plug some memory leak
This commit is contained in:
parent
67b2ddbad5
commit
fc169fe23f
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue