<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7641">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bridge_softmix: Fix memory leaks.<br><br>Change-Id: Ifaf3e93b398595d21d07f535330fef77ff15a80c<br>---<br>M bridges/bridge_softmix.c<br>1 file changed, 3 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/41/7641/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 8de88f2..6460a6e 100644<br>--- a/bridges/bridge_softmix.c<br>+++ b/bridges/bridge_softmix.c<br>@@ -672,6 +672,7 @@<br>                             ast_log(LOG_ERROR, "Bridge %s: Failed to join channel %s. "<br>                                                 "Could not allocate enough memory.\n", bridge->uniqueid,<br>                                                 ast_channel_name(bridge_channel->chan));<br>+                          ast_free(sc);<br>                                 return -1;<br>                    }<br>             }<br>@@ -1306,6 +1307,8 @@<br>              ast_log(LOG_NOTICE, "Failed to re-allocate softmix mixing structure.\n");<br>           return -1;<br>    }<br>+    mixing_array->buffers = tmp;<br>+<br>    if (binaural_active) {<br>                struct convolve_channel_pair **tmp2;<br>          if (!(tmp2 = ast_realloc(mixing_array->chan_pairs,<br>@@ -1315,7 +1318,6 @@<br>          }<br>             mixing_array->chan_pairs = tmp2;<br>   }<br>-    mixing_array->buffers = tmp;<br>       return 0;<br> }<br> <br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7641">change 7641</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/7641"/><meta itemprop="name" content="View Change"/></div></div>

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