]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
fix potential crash in constcw descrabler destructor
authorManuel Lauss <manuel.lauss@gmail.com>
Wed, 4 Nov 2015 17:57:54 +0000 (18:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 4 Nov 2015 19:45:42 +0000 (20:45 +0100)
gcc's lto noted that free() is passed a pointer to a pointer
to memory.

src/descrambler/constcw.c

index b68df0c2b579af23b462e02d6d9de90aef4b6db1..eb0dcfb47532ddbe064e4455e24e862aea017346 100644 (file)
@@ -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);
   }
 }