ConfBridge: redundant code cleanup
authorKinsey Moore <kmoore@digium.com>
Thu, 23 Jun 2011 18:56:05 +0000 (18:56 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 23 Jun 2011 18:56:05 +0000 (18:56 +0000)
There is no reason to clean up features twice.

Review: https://reviewboard.asterisk.org/r/1279/

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

apps/app_confbridge.c

index 775a628..2ed03e1 100644 (file)
@@ -1400,9 +1400,6 @@ static int confbridge_exec(struct ast_channel *chan, const char *data)
        leave_conference_bridge(conference_bridge, &conference_bridge_user);
        conference_bridge = NULL;
 
-       /* Can't forget to clean up the features structure, or else we risk a memory leak */
-       ast_bridge_features_cleanup(&conference_bridge_user.features);
-
        /* If the user was kicked from the conference play back the audio prompt for it */
        if (!quiet && conference_bridge_user.kicked) {
                res = ast_stream_and_wait(chan,