mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Fix channel reference leak in ChanSpy.
* Fix next_channel() channel reference leak in ChanSpy.
(closes issue ASTERISK-19461)
Reported by: Irontec
Patches:
app_chanspy_iteartor_next_unref.patch (license #6213) patch uploaded by Irontec
(issue ASTERISK-17515)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@357809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -745,8 +745,10 @@ redo:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strncmp(next->name, "DAHDI/pseudo", pseudo_len)) {
|
if (!strncmp(next->name, "DAHDI/pseudo", pseudo_len)) {
|
||||||
|
ast_channel_unref(next);
|
||||||
goto redo;
|
goto redo;
|
||||||
} else if (next == chan) {
|
} else if (next == chan) {
|
||||||
|
ast_channel_unref(next);
|
||||||
goto redo;
|
goto redo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user