cc: fix memory leak
Release <<PORTABLE-IDENTITY>> and <<FIXED-IDENTITY>> IEs when destroying a call. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
c05ddcc6ae
commit
318b67e8a1
3
src/cc.c
3
src/cc.c
|
@ -580,6 +580,9 @@ EXPORT_SYMBOL(dect_call_alloc);
|
|||
static void dect_call_destroy(const struct dect_handle *dh,
|
||||
struct dect_call *call)
|
||||
{
|
||||
dect_ie_put(dh, call->ft_id);
|
||||
dect_ie_put(dh, call->pt_id);
|
||||
|
||||
dect_cc_stop_timers(dh, call);
|
||||
if (dect_timer_running(call->release_timer))
|
||||
dect_timer_stop(dh, call->release_timer);
|
||||
|
|
Reference in New Issue