Fix a build error.
authorRussell Bryant <russell@russellbryant.com>
Fri, 24 Apr 2009 15:17:38 +0000 (15:17 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 24 Apr 2009 15:17:38 +0000 (15:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190457 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 132f0d1..5360ba4 100644 (file)
@@ -8395,7 +8395,7 @@ static void misdn_cc_pbx_notify(long record_id, const struct misdn_cc_notify *no
 
        if (ast_pbx_start(chan)) {
                ast_log(LOG_WARNING, "Unable to start pbx channel %s!\n", chan->name);
-               ast_channel_free(chan);
+               ast_channel_release(chan);
        } else {
                ast_verb(1, "Started pbx for call completion notify channel %s\n", chan->name);
        }