From fe1ed39846c6537ebfe19d22500ee2e38587c143 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 17 Nov 2017 00:15:44 +0100 Subject: sercomm_test: sanitize: fix msgb mem leak This should fix the last current remaining sanitizer build failure in libosmocore regression tests. Helps fix sanitizer build on debian 9. Change-Id: I4d6dd7f4348675bc77d4df5a7a0ce41f12d4a043 --- tests/sercomm/sercomm_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/sercomm/sercomm_test.c b/tests/sercomm/sercomm_test.c index f4f1c22b..058c9eb4 100644 --- a/tests/sercomm/sercomm_test.c +++ b/tests/sercomm/sercomm_test.c @@ -47,6 +47,7 @@ static void rx_ser_data(struct osmo_sercomm_inst *sc, const uint8_t *data, unsig static void dlci_rx_cb(struct osmo_sercomm_inst *sercomm, uint8_t dlci, struct msgb *msg) { printf("%s(): %s\n", __func__, msgb_hexdump(msg)); + msgb_free(msg); } static struct msgb *create_mahlzeit_msg(void) -- cgit v1.2.3