<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7106">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge_softmix: Fix leak on ast_stream_topology_set_stream failure.<br><br>Change-Id: I91d25704859efbe50b8b82cfe1cd3c40ba177c9f<br>---<br>M bridges/bridge_softmix.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/7106/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/bridges/bridge_softmix.c b/bridges/bridge_softmix.c<br>index f490967..ea4f198 100644<br>--- a/bridges/bridge_softmix.c<br>+++ b/bridges/bridge_softmix.c<br>@@ -541,7 +541,10 @@<br>                  dest_index++;<br> <br>                      if (ast_stream_get_state(stream) == AST_STREAM_STATE_REMOVED) {<br>-                              ast_stream_topology_set_stream(dest, dest_index - 1, clone);<br>+                         if (ast_stream_topology_set_stream(dest, dest_index - 1, clone)) {<br>+                                   ast_stream_free(clone);<br>+                                      return -1;<br>+                           }<br>                             added = 1;<br>                            break;<br>                        }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7106">change 7106</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7106"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I91d25704859efbe50b8b82cfe1cd3c40ba177c9f </div>
<div style="display:none"> Gerrit-Change-Number: 7106 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>