input/e1d: fix a memleak in handle_ts_raw_read()

Change-Id: I18965d1ef67a388e7bcdddd0314a9090e34c89e0
This commit is contained in:
Vadim Yanitskiy 2022-04-18 02:12:00 +03:00
parent 296678662a
commit bb9cba0167
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ static int handle_ts_raw_read(struct osmo_fd *bfd)
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;
}