<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9951">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix memleak in ipa_rx_msg_sccp<br><br>After m3ua_xfer_from_data() has copied the msgb data, we need to free the msgb.<br><br>Change-Id: I2263751c0aa3ae32455847c7622af8be0a1e7802<br>---<br>M src/ipa.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/51/9951/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ipa.c b/src/ipa.c</span><br><span>index 0e6f683..e15b1d8 100644</span><br><span>--- a/src/ipa.c</span><br><span>+++ b/src/ipa.c</span><br><span>@@ -258,6 +258,7 @@</span><br><span>     data_hdr.dpc = osmo_htonl(dpc);</span><br><span>      /* Create M3UA message in XUA structure */</span><br><span>   xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg), msgb_l2len(msg));</span><br><span style="color: hsl(120, 100%, 40%);">+      msgb_free(msg);</span><br><span>      /* Update xua->mtp with values from data_hdr */</span><br><span>   m3ua_dh_to_xfer_param(&xua->mtp, &data_hdr);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9951">change 9951</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/9951"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2263751c0aa3ae32455847c7622af8be0a1e7802 </div>
<div style="display:none"> Gerrit-Change-Number: 9951 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>