<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/26569">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stat_item: tolerate NULL pointer argument in osmo_stat_item_group_free<br><br>Just like rate_ctr_group_free, osmo_stat_item_group_free should tolerate<br>it when the argument is NULL<br><br>Change-Id: I23323833e7268356a50c4fc6a19639c4ecd2a101<br>---<br>M src/stat_item.c<br>1 file changed, 3 insertions(+), 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/69/26569/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/stat_item.c b/src/stat_item.c</span><br><span>index 59f5935..667b15f 100644</span><br><span>--- a/src/stat_item.c</span><br><span>+++ b/src/stat_item.c</span><br><span>@@ -228,6 +228,9 @@</span><br><span> /*! Free the memory for the specified group of stat items */</span><br><span> void osmo_stat_item_group_free(struct osmo_stat_item_group *grp)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!grp)</span><br><span style="color: hsl(120, 100%, 40%);">+ return;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> llist_del(&grp->list);</span><br><span> talloc_free(grp);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/26569">change 26569</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/libosmocore/+/26569"/><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-Change-Id: I23323833e7268356a50c4fc6a19639c4ecd2a101 </div>
<div style="display:none"> Gerrit-Change-Number: 26569 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>