Change in osmo-bts[master]: trx_if: Set pointer to null after freeing it

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/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Sep 22 12:23:53 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/25516 )

Change subject: trx_if: Set pointer to null after freeing it
......................................................................

trx_if: Set pointer to null after freeing it

Change-Id: Icd93c9968095a8801aafe9440806cb5786320cbc
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 968c335..bfeb2ec 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -1199,6 +1199,7 @@
 		talloc_free(tcm);
 	}
 	talloc_free(l1h->last_acked);
+	l1h->last_acked = NULL;
 }
 
 /*! close the TRX for given handle (data + control socket) */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/25516
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Icd93c9968095a8801aafe9440806cb5786320cbc
Gerrit-Change-Number: 25516
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210922/16fdd4ba/attachment.htm>


More information about the gerrit-log mailing list