dect
/
libdect
Archived
13
0
Fork 0

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:
Patrick McHardy 2010-10-09 18:53:57 +02:00
parent c05ddcc6ae
commit 318b67e8a1
1 changed files with 3 additions and 0 deletions

View File

@ -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);