<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20913">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NS2: follow the change of ownership<br><br>When receiving a primitive from the NS2 layer<br>the PCU must free the msg buffer if given.<br><br>Change-Id: I180433735bfbb3375c41318d7a7709d5845199ba<br>---<br>M src/gprs_bssgp_pcu.cpp<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/13/20913/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp</span><br><span>index 9b6cbaa..23490f8 100644</span><br><span>--- a/src/gprs_bssgp_pcu.cpp</span><br><span>+++ b/src/gprs_bssgp_pcu.cpp</span><br><span>@@ -598,7 +598,7 @@</span><br><span>           LOGP(DPCU, LOGL_NOTICE, "NS: %s Unknown prim %d from NS\n",</span><br><span>                     get_value_string(osmo_prim_op_names, oph->operation),</span><br><span>                     oph->operation);</span><br><span style="color: hsl(0, 100%, 40%);">-                return 0;</span><br><span style="color: hsl(120, 100%, 40%);">+             goto out;</span><br><span>    }</span><br><span> </span><br><span>        switch (oph->primitive) {</span><br><span>@@ -621,6 +621,10 @@</span><br><span>          break;</span><br><span>       }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+out:</span><br><span style="color: hsl(120, 100%, 40%);">+   if (oph->msg)</span><br><span style="color: hsl(120, 100%, 40%);">+              msgb_free(oph->msg);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>    return rc;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20913">change 20913</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/c/osmo-pcu/+/20913"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I180433735bfbb3375c41318d7a7709d5845199ba </div>
<div style="display:none"> Gerrit-Change-Number: 20913 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>