<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10450">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-msc: free the VTY talloc context on exit<br><br>This is a follow up change before enabling the track of NULL talloc<br>contexts. Since there is no other way to deinitialize libosmovty,<br>let's free its root context on exit. Otherwise one would see<br>lots of memory chunks on exit...<br><br>Change-Id: I278f85f023210de6b4626d4493d10d20996f606a<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/50/10450/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..2159d65 100644</span><br><span>--- a/src/osmo-msc/msc_main.c</span><br><span>+++ b/src/osmo-msc/msc_main.c</span><br><span>@@ -710,6 +710,9 @@</span><br><span>    talloc_report_full(tall_msc_ctx, stderr);</span><br><span>    talloc_free(tall_msc_ctx);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        /* FIXME: VTY code still uses NULL-context */</span><br><span style="color: hsl(120, 100%, 40%);">+ talloc_free(tall_vty_ctx);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>         /**</span><br><span>   * Report the heap state of NULL context, then free,</span><br><span>          * so both ASAN and Valgrind are happy...</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10450">change 10450</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/10450"/><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: I278f85f023210de6b4626d4493d10d20996f606a </div>
<div style="display:none"> Gerrit-Change-Number: 10450 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>