input/e1d: fix a memleak in handle_ts_raw_read()
Change-Id: I18965d1ef67a388e7bcdddd0314a9090e34c89e0
This commit is contained in:
parent
296678662a
commit
bb9cba0167
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue