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/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/22271 ) Change subject: test: gprs_ns2: correct implement free_bind() ...................................................................... test: gprs_ns2: correct implement free_bind() free_bind() should free up all driver specific state but NOT the bind itself. Change-Id: Iac506734c93aca8be045ac13788d07d1bdc78eb3 --- M tests/gb/gprs_ns2_test.c 1 file changed, 7 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/71/22271/1 diff --git a/tests/gb/gprs_ns2_test.c b/tests/gb/gprs_ns2_test.c index d53dc88..b44b033 100644 --- a/tests/gb/gprs_ns2_test.c +++ b/tests/gb/gprs_ns2_test.c @@ -44,10 +44,16 @@ return 0; } +static void clear_pdus(struct gprs_ns2_vc_bind *bind) +{ + struct osmo_wqueue *queue = bind->priv; + osmo_wqueue_clear(queue); +} + void free_bind(struct gprs_ns2_vc_bind *bind) { OSMO_ASSERT(bind); - talloc_free(bind); + clear_pdus(bind); } struct gprs_ns2_vc_driver vc_driver_dummy = { -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22271 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Iac506734c93aca8be045ac13788d07d1bdc78eb3 Gerrit-Change-Number: 22271 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210117/df9f535b/attachment.htm>