<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10447">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-msc: track the use of talloc NULL memory contexts<br><br>Tracking NULL memory contexts allows one to detect memory chunks,<br>allocated outside the application's root context, which in most<br>cases are results of some mistake.<br><br>In b874486e8e48f033204bfcc86871dd851266d440 the repotring of<br>NULL-context state was introduced, but without asking talloc<br>to track the use of NULL memory contexts it doesn't make sense.<br><br>Change-Id: I4b5e3946ee21c7d0ed6c66b1059dbce5ad312f88<br>---<br>M src/osmo-msc/msc_main.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/47/10447/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-msc/msc_main.c b/src/osmo-msc/msc_main.c</span><br><span>index b1bb52a..86240d5 100644</span><br><span>--- a/src/osmo-msc/msc_main.c</span><br><span>+++ b/src/osmo-msc/msc_main.c</span><br><span>@@ -521,6 +521,9 @@</span><br><span> {</span><br><span>   int rc;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* Track the use of talloc NULL memory contexts */</span><br><span style="color: hsl(120, 100%, 40%);">+    talloc_enable_null_tracking();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>     msc_vty_info.copyright  = osmomsc_copyright;</span><br><span> </span><br><span>     tall_msc_ctx = talloc_named_const(NULL, 1, "osmo_msc");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10447">change 10447</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/10447"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4b5e3946ee21c7d0ed6c66b1059dbce5ad312f88 </div>
<div style="display:none"> Gerrit-Change-Number: 10447 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>