<p style="white-space: pre-wrap; word-wrap: break-word;">indeed fixes the leaks that i reported</p><p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24909">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24909/2/src/m3ua.c">File src/m3ua.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24909/2/src/m3ua.c@757">Patch Set #2, Line 757:</a> <code style="font-family:monospace,monospace">              xua_msg_free(err);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">with this change applied, i still see this after running a few BSC ttcn3 tests:</p><p style="white-space: pre-wrap; word-wrap: break-word;">==1994==ERROR: LeakSanitizer: detected memory leaks</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Indirect leak of 11760 byte(s) in 90 object(s) allocated from:<br>    #0 0x7fbec8de6330 in __interceptor_malloc (/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)<br>    #1 0x7fbec899f140 in _talloc_zero (/lib/x86_64-linux-gnu/libtalloc.so.2+0x9140)</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Indirect leak of 6000 byte(s) in 60 object(s) allocated from:<br>    #0 0x7fbec8de6330 in __interceptor_malloc (/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)<br>    #1 0x7fbec899f776 in _talloc_memdup (/lib/x86_64-linux-gnu/libtalloc.so.2+0x9776)</pre><p style="white-space: pre-wrap; word-wrap: break-word;">SUMMARY: AddressSanitizer: 17760 byte(s) leaked in 150 allocation(s).</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24909/2/src/m3ua.c@861">Patch Set #2, Line 861:</a> <code style="font-family:monospace,monospace"> xua_msg_free(xua);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">with this change applied, all of the above asan error messages are gone</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/24909">change 24909</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/libosmo-sccp/+/24909"/><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-Change-Id: Id8584b99f30f2db602d4d129e4114821697272ab </div>
<div style="display:none"> Gerrit-Change-Number: 24909 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 12 Jul 2021 14:24:46 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>