mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Fix leak in AMI Action Bridge
Add missing reference cleanup for newly created bridge. ASTERISK-24281 Reported by: Stefan Engström Review: https://reviewboard.asterisk.org/r/4154/ ........ Merged revisions 427736 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 427737 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -844,6 +844,7 @@ static int action_bridge(struct mansession *s, const struct message *m)
|
||||
}
|
||||
|
||||
astman_send_ack(s, m, "Channels have been bridged");
|
||||
ao2_cleanup(bridge);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user