laforge has submitted this change. (
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(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
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;
}
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-abis/+/27814
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I18965d1ef67a388e7bcdddd0314a9090e34c89e0
Gerrit-Change-Number: 27814
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged