diff options
author | Jean-Francois Dionne <jf.dionne@nutaq.com> | 2017-01-11 11:01:49 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-01-12 11:13:35 +0000 |
commit | 0e5b12f981e9844590db409ebe7584a57a0a3025 (patch) | |
tree | a89a9ab991baa59a29c8cfe0527ed900b36f916a | |
parent | df75195666526d4ccd7e2e05c59db47fd02f9692 (diff) |
lc15,sysmobts l1_if: fix memleak in handle_mph_time_ind()
Change-Id: I3061060235a488b114b636b3af9a2253a94de1e8
-rw-r--r-- | src/osmo-bts-litecell15/l1_if.c | 1 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c index 99533d73..c70bd9ec 100644 --- a/src/osmo-bts-litecell15/l1_if.c +++ b/src/osmo-bts-litecell15/l1_if.c @@ -647,6 +647,7 @@ static int handle_mph_time_ind(struct lc15l1_hdl *fl1, /* ignore every time indication, except for c0 */ if (trx != bts->c0) { + msgb_free(msg); return 0; } diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index ad9aa644..82db8d70 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -642,6 +642,7 @@ static int handle_mph_time_ind(struct femtol1_hdl *fl1, /* ignore every time indication, except for c0 */ if (trx != bts->c0) { + msgb_free(msg); return 0; } |