From: Manuel Lauss Date: Wed, 4 Nov 2015 17:57:54 +0000 (+0100) Subject: fix potential crash in constcw descrabler destructor X-Git-Tag: v4.2.1~1666 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57329de8655b608a04442e00b60264778a40f349;p=thirdparty%2Ftvheadend.git fix potential crash in constcw descrabler destructor gcc's lto noted that free() is passed a pointer to a pointer to memory. --- diff --git a/src/descrambler/constcw.c b/src/descrambler/constcw.c index b68df0c2b..eb0dcfb47 100644 --- a/src/descrambler/constcw.c +++ b/src/descrambler/constcw.c @@ -169,7 +169,7 @@ constcw_free(caclient_t *cac) while((ct = LIST_FIRST(&ccw->ccw_services)) != NULL) { service_t *t = ct->td_service; pthread_mutex_lock(&t->s_stream_mutex); - constcw_service_destroy((th_descrambler_t *)&ct); + constcw_service_destroy((th_descrambler_t *)ct); pthread_mutex_unlock(&t->s_stream_mutex); } }