chan_dect: fix module reference leak
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
8496c5c07b
commit
f5409cd3e9
|
@ -540,6 +540,7 @@ static int dect_hangup(struct ast_channel *chan)
|
||||||
|
|
||||||
chan->tech_pvt = NULL;
|
chan->tech_pvt = NULL;
|
||||||
ast_setstate(chan, AST_STATE_DOWN);
|
ast_setstate(chan, AST_STATE_DOWN);
|
||||||
|
ast_module_unref(ast_module_info->self);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue