capmt: fix invalid use of free()'d data as spotted by EricV

This commit is contained in:
Adam Sutton 2014-04-17 17:49:12 +01:00
parent 6df4ddba8e
commit a07836fc38

View file

@ -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