]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix leak in AMI Action Bridge
authorCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 20:37:01 +0000 (20:37 +0000)
committerCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 20:37:01 +0000 (20:37 +0000)
Add missing reference cleanup for newly created bridge.

ASTERISK-24281
Reported by: Stefan Engström
Review: https://reviewboard.asterisk.org/r/4154/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@427736 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 700a21f86edad05cbad33ff78fa490a5365184b2..6944e10d4e74646621b8b5e56906c5b36188189e 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;
 }