]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
bridge_softmix: Return early on topology allocation failure.
authorSean Bright <sean@seanbright.com>
Fri, 7 Nov 2025 22:09:06 +0000 (17:09 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 12 Nov 2025 22:07:09 +0000 (22:07 +0000)
Resolves: #1446

bridges/bridge_softmix.c

index cdccc6796b233c920644383be435533600249e56..340e4ae43b6780497ad3b948db220ac7f60e8085 100644 (file)
@@ -2270,7 +2270,7 @@ static void softmix_bridge_stream_sources_update(struct ast_bridge *bridge, stru
 
        added_streams = ast_stream_topology_alloc();
        if (!added_streams) {
-               SCOPE_EXIT_LOG(LOG_ERROR, "%s: Couldn't alloc topology\n", ast_channel_name(bridge_channel->chan));
+               SCOPE_EXIT_LOG_RTN(LOG_ERROR, "%s: Couldn't alloc topology\n", ast_channel_name(bridge_channel->chan));
        }
 
        /* We go through the old topology comparing it to the new topology to determine what streams