<p>Stefan Sperling has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/11943">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix file descriptor leak in osysmon_file_read<br><br>Don't forget to close the file which was opened at the<br>beginning of this function's scope. Found by Coverity.<br><br>Change-Id: Ie1b5734748438c6d785cd96dfa9af6303cd102da<br>Related: CID#189756<br>---<br>M osysmon_file.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/osmo-sysmon refs/changes/43/11943/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/osysmon_file.c b/osysmon_file.c</span><br><span>index 6f826b4..518b20d 100644</span><br><span>--- a/osysmon_file.c</span><br><span>+++ b/osysmon_file.c</span><br><span>@@ -93,6 +93,7 @@</span><br><span>        while ((nl = strrchr(buf, '\n')))</span><br><span>            *nl = '\0';</span><br><span>  value_node_add(parent, parent, of->cfg.name, buf);</span><br><span style="color: hsl(120, 100%, 40%);">+ fclose(f);</span><br><span> }</span><br><span> </span><br><span> /***********************************************************************</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11943">change 11943</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/11943"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sysmon </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie1b5734748438c6d785cd96dfa9af6303cd102da </div>
<div style="display:none"> Gerrit-Change-Number: 11943 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>