cwc: added missing free() to stop memory leak
This commit is contained in:
parent
fb7fd61a6f
commit
8db7690c93
1 changed files with 1 additions and 0 deletions
|
@ -1220,6 +1220,7 @@ cwc_thread(void *aux)
|
|||
|
||||
while((cd = LIST_FIRST(&cwc->cwc_cards)) != NULL) {
|
||||
LIST_REMOVE(cd, cs_card);
|
||||
free(cd);
|
||||
}
|
||||
free((void *)cwc->cwc_password);
|
||||
free((void *)cwc->cwc_password_salted);
|
||||
|
|
Loading…
Add table
Reference in a new issue