<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13389">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/gsmtap_util.c: fix possible memleak in gsmtap_source_init()<br><br>In gsmtap_source_init() we dynamically allocate a gsmtap_inst struct,<br>but don't free it if the subsequent call to osmo_fd_register() fails.<br><br>Change-Id: I970b493f3a64fbe9c3f68fcfba5097ee3ff72960<br>---<br>M src/gsmtap_util.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/89/13389/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c</span><br><span>index 996830f..b04d87f 100644</span><br><span>--- a/src/gsmtap_util.c</span><br><span>+++ b/src/gsmtap_util.c</span><br><span>@@ -440,6 +440,7 @@</span><br><span> </span><br><span>            rc = osmo_fd_register(&gti->wq.bfd);</span><br><span>          if (rc < 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+                      talloc_free(gti);</span><br><span>                    close(fd);</span><br><span>                   return NULL;</span><br><span>                 }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13389">change 13389</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/13389"/><meta itemprop="name" content="View Change"/></div></div>

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