MixMonitor: Fix refleak in manager_stop_mixmonitor() if could not stop monitoring.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 2 Jul 2013 21:01:23 +0000 (21:01 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 2 Jul 2013 21:01:23 +0000 (21:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393490 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index f37e028..588c7a3 100644 (file)
@@ -1357,6 +1357,7 @@ static int manager_stop_mixmonitor(struct mansession *s, const struct message *m
        res = stop_mixmonitor_full(c, mixmonitor_id);
 
        if (res) {
+               ast_channel_unref(c);
                astman_send_error(s, m, "Could not stop monitoring channel");
                return AMI_SUCCESS;
        }