mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
fix destroy leak when using uart.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@203 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
e56c64a692
commit
b351047b14
@ -233,6 +233,10 @@ void dsp_bell202_destroy(dsp_bell202_handle_t **handle)
|
|||||||
(*handle)->buffer = NULL;
|
(*handle)->buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((*handle)->attr.bytehandler) {
|
||||||
|
dsp_uart_destroy((dsp_uart_handle_t**)&(*handle)->attr.bithandler_arg);
|
||||||
|
}
|
||||||
|
|
||||||
free(*handle);
|
free(*handle);
|
||||||
*handle = NULL;
|
*handle = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user