laforge submitted this change.
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(-)
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 change 27814. To unsubscribe, or for help writing mail filters, visit settings.