diff --git a/libs/openzap/src/fsk.c b/libs/openzap/src/fsk.c index df3c834787..bed3e12a64 100644 --- a/libs/openzap/src/fsk.c +++ b/libs/openzap/src/fsk.c @@ -237,7 +237,8 @@ void dsp_fsk_destroy(dsp_fsk_handle_t **handle) } if ((*handle)->attr.bytehandler) { - dsp_uart_destroy((dsp_uart_handle_t**)&(*handle)->attr.bithandler_arg); + dsp_uart_handle_t** dhandle = (void *)(&(*handle)->attr.bithandler_arg); + dsp_uart_destroy(dhandle); } free(*handle);