This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/17114 ) Change subject: bitvec: make bitvec_free() safe against NULL ...................................................................... bitvec: make bitvec_free() safe against NULL Change-Id: Ifafb65e9d0adc286e16104274db440f38a86d800 Related: CID#208181, CID#208179 --- M src/bitvec.c 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/14/17114/1 diff --git a/src/bitvec.c b/src/bitvec.c index ef8621c..5130705 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -418,6 +418,8 @@ * \param[in] bit vector to free */ void bitvec_free(struct bitvec *bv) { + if (bv == NULL) + return; talloc_free(bv->data); talloc_free(bv); } -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/17114 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ifafb65e9d0adc286e16104274db440f38a86d800 Gerrit-Change-Number: 17114 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <axilirator at gmail.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200210/c1d21024/attachment.htm>