<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17114">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">bitvec: make bitvec_free() safe against NULL<br><br>Change-Id: Ifafb65e9d0adc286e16104274db440f38a86d800<br>Related: CID#208181, CID#208179<br>---<br>M src/bitvec.c<br>1 file changed, 2 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/14/17114/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/bitvec.c b/src/bitvec.c</span><br><span>index ef8621c..5130705 100644</span><br><span>--- a/src/bitvec.c</span><br><span>+++ b/src/bitvec.c</span><br><span>@@ -418,6 +418,8 @@</span><br><span>  *  \param[in] bit vector to free */</span><br><span> void bitvec_free(struct bitvec *bv)</span><br><span> {</span><br><span style="color: hsl(120, 100%, 40%);">+   if (bv == NULL)</span><br><span style="color: hsl(120, 100%, 40%);">+               return;</span><br><span>      talloc_free(bv->data);</span><br><span>    talloc_free(bv);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/17114">change 17114</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/+/17114"/><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: Ifafb65e9d0adc286e16104274db440f38a86d800 </div>
<div style="display:none"> Gerrit-Change-Number: 17114 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>