diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-17 00:15:44 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-20 17:22:42 +0100 |
commit | fe1ed39846c6537ebfe19d22500ee2e38587c143 (patch) | |
tree | b64e62ba07bdb5e827805dfe6fd2f5efbc276438 /tests/sercomm | |
parent | e750980d6c89cf7052daa62745366a743badd384 (diff) |
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
Diffstat (limited to 'tests/sercomm')
-rw-r--r-- | tests/sercomm/sercomm_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |