<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10223">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr.c: free root talloc context on exit<br><br>This makes both ASAN and Valgrind happy, because they do expect<br>all allocated heap chunks to be released on exit.<br><br>Change-Id: I7345dec8d06b0b71a859c16132dc0008cfe17cba<br>---<br>M src/hlr.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/23/10223/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr.c b/src/hlr.c</span><br><span>index 7fdb27e..6c0cb0a 100644</span><br><span>--- a/src/hlr.c</span><br><span>+++ b/src/hlr.c</span><br><span>@@ -625,7 +625,12 @@</span><br><span>       db_close(g_hlr->dbc);</span><br><span>     log_fini();</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+       /**</span><br><span style="color: hsl(120, 100%, 40%);">+    * Report the heap state of root context, then free,</span><br><span style="color: hsl(120, 100%, 40%);">+   * so both ASAN and Valgrind are happy...</span><br><span style="color: hsl(120, 100%, 40%);">+      */</span><br><span>  talloc_report_full(hlr_ctx, stderr);</span><br><span style="color: hsl(120, 100%, 40%);">+  talloc_free(hlr_ctx);</span><br><span> </span><br><span>    return 0;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10223">change 10223</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/10223"/><meta itemprop="name" content="View Change"/></div></div>

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