diff --git a/libs/freetdm/src/dsp/bell202.c b/libs/freetdm/src/dsp/bell202.c index 0a8eaa038d..cd1633febf 100644 --- a/libs/freetdm/src/dsp/bell202.c +++ b/libs/freetdm/src/dsp/bell202.c @@ -233,6 +233,10 @@ void dsp_bell202_destroy(dsp_bell202_handle_t **handle) (*handle)->buffer = NULL; } + if ((*handle)->attr.bytehandler) { + dsp_uart_destroy((dsp_uart_handle_t**)&(*handle)->attr.bithandler_arg); + } + free(*handle); *handle = NULL; }