summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Pfetsch <spfetsch@google.com>2020-09-28 13:16:01 -0700
committerSteve Pfetsch <spfetsch@google.com>2020-09-28 22:34:14 +0000
commit7406bda4147fb35d762eece61046c580939117a0 (patch)
tree22b617e6893c7a23bba36c5129a2591ef96df4df
parented664b07d67ce440f666faf03da086f84e783794 (diff)
downloadfts_touch-7406bda4147fb35d762eece61046c580939117a0.tar.gz
Free memory allocated by calls to getMSFrame3 and getSSFrame3. Bug: 169240052 Signed-off-by: Steve Pfetsch <spfetsch@google.com> Change-Id: I204502f08e702417b8879430bd6c414aef2275f5
-rw-r--r--fts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fts.c b/fts.c
index 8ba47f8..b9292e2 100644
--- a/fts.c
+++ b/fts.c
@@ -4206,6 +4206,7 @@ static void fts_populate_mutual_channel(struct fts_ts_info *info,
}
}
}
+ kfree(ms_frame.node_data);
}
static void fts_populate_self_channel(struct fts_ts_info *info,
@@ -4247,6 +4248,8 @@ static void fts_populate_self_channel(struct fts_ts_info *info,
memcpy(&self_strength->data[2 * self_strength->tx_size],
ss_frame.sense_data, 2 * self_strength->rx_size);
}
+ kfree(ss_frame.force_data);
+ kfree(ss_frame.sense_data);
}
static void fts_populate_frame(struct fts_ts_info *info,