Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix potential crash in constcw descrabler destructor
gcc's lto noted that free() is passed a pointer to a pointer
to memory.
  • Loading branch information
mlauss2 authored and perexg committed Nov 4, 2015
1 parent 14a80d9 commit 57329de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/constcw.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 57329de

Please sign in to comment.