capmt: fix invalid use of free()'d data as spotted by EricV
This commit is contained in:
parent
6df4ddba8e
commit
a07836fc38
1 changed files with 3 additions and 3 deletions
|
@ -411,11 +411,11 @@ capmt_service_destroy(th_descrambler_t *td)
|
|||
|
||||
LIST_REMOVE(ct, ct_link);
|
||||
|
||||
tvhcsa_destroy(&ct->ct_csa);
|
||||
free(ct);
|
||||
|
||||
if (ct->ct_capmt->capmt_oscam == 2)
|
||||
capmt_enumerate_services(ct->ct_capmt, 0, 1);
|
||||
|
||||
tvhcsa_destroy(&ct->ct_csa);
|
||||
free(ct);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue