fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/27814 )
Change subject: input/e1d: fix a memleak in handle_ts_raw_read() ......................................................................
input/e1d: fix a memleak in handle_ts_raw_read()
Change-Id: I18965d1ef67a388e7bcdddd0314a9090e34c89e0 --- M src/input/e1d.c 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/14/27814/1
diff --git a/src/input/e1d.c b/src/input/e1d.c index a959b40..ddd1bc4 100644 --- a/src/input/e1d.c +++ b/src/input/e1d.c @@ -232,6 +232,7 @@ ret = read(bfd->fd, msg->data, D_TSX_ALLOC_SIZE); if (ret < 0 || ret != D_TSX_ALLOC_SIZE) { LOGPITS(e1i_ts, DLINP, LOGL_DEBUG, "read error %d %s\n", ret, strerror(errno)); + msgb_free(msg); return ret; }