aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmux.c1
-rw-r--r--tests/osmo-pcap-test/osmux_test.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index d2ad96d..56ecd03 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -248,7 +248,6 @@ void osmux_xfrm_input_deliver(struct osmux_in_handle *h)
LOGP(DLMIB, LOGL_DEBUG, "invoking delivery function\n");
batch_msg = osmux_build_batch(h);
h->deliver(batch_msg);
- msgb_free(batch_msg);
osmo_timer_del(&batch->timer);
batch->remaining_bytes = OSMUX_BATCH_MAX;
}
diff --git a/tests/osmo-pcap-test/osmux_test.c b/tests/osmo-pcap-test/osmux_test.c
index 541665a..96cb478 100644
--- a/tests/osmo-pcap-test/osmux_test.c
+++ b/tests/osmo-pcap-test/osmux_test.c
@@ -60,6 +60,7 @@ static void deliver(struct msgb *batch_msg)
osmux_xfrm_output(osmuxh, &h_output, &list);
osmux_tx_sched(&list, tx_cb, NULL);
}
+ msgb_free(batch_msg);
}
/*