Fix leak in AMI Action Bridge
authorCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 20:40:59 +0000 (20:40 +0000)
committerCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 20:40:59 +0000 (20:40 +0000)
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

main/features.c

index 700a21f..6944e10 100644 (file)
@@ -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;
 }