<p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/8/src/e1_input_vty.c">File src/e1_input_vty.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-abis/+/14743/8/src/e1_input_vty.c@189">Patch Set #8, Line 189:</a> <code style="font-family:monospace,monospace">         line->ipa_kap = talloc_zero(line, struct ipa_keepalive_params);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">if you run "e1_line" on VTY twice -> memleak.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/8/src/e1_input_vty.c@192">Patch Set #8, Line 192:</a> <code style="font-family:monospace,monospace">       } else</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">missing {}, but better simply call talloc_free before checking if (interval) to avoif the memleak. btw, what's this macro instead of talloc_free()?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/8/src/input/ipaccess.c">File src/input/ipaccess.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-abis/+/14743/8/src/input/ipaccess.c@62">Patch Set #8, Line 62:</a> <code style="font-family:monospace,monospace">#define ka_fsm_for_ts(ipaline,ofd) (ipaline->ka_fsm[ofd->priv_nr-1])</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">1- Missing () when using the params<br>2- Can we rename this? it's confusing IMHO.<br>#define ipaccess_line_get_ts_ka_fsm(ipaline, ofd) ((ipaline)->ka_fsm[(ofd)->priv_nr - 1])</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/8/src/input/ipaccess.c@65">Patch Set #8, Line 65:</a> <code style="font-family:monospace,monospace">     int line_already_initialized;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You are changing this to bool on next commit, better fix it here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/8/src/input/ipaccess.c@66">Patch Set #8, Line 66:</a> <code style="font-family:monospace,monospace">     struct osmo_fsm_inst* ka_fsm[NUM_E1_TS];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I have the feeling this should not be here but in struct e1i_ts.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743">change 14743</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-abis/+/14743"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I30e3bd601e55355aaf738ee2f2c44c1ec2c46c6a </div>
<div style="display:none"> Gerrit-Change-Number: 14743 </div>
<div style="display:none"> Gerrit-PatchSet: 8 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Assignee: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 21 Jan 2020 15:17:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>