diff options
author | Steve Pfetsch <spfetsch@google.com> | 2020-09-28 13:16:01 -0700 |
---|---|---|
committer | Steve Pfetsch <spfetsch@google.com> | 2020-09-28 22:34:14 +0000 |
commit | 7406bda4147fb35d762eece61046c580939117a0 (patch) | |
tree | 22b617e6893c7a23bba36c5129a2591ef96df4df | |
parent | ed664b07d67ce440f666faf03da086f84e783794 (diff) | |
download | fts_touch-7406bda4147fb35d762eece61046c580939117a0.tar.gz |
input: touchscreen: stm: fix memory leakandroid-11.0.0_r0.81android-11.0.0_r0.76android-11.0.0_r0.66android-11.0.0_r0.57android-11.0.0_r0.56android-11.0.0_r0.47android-11.0.0_r0.46android-11.0.0_r0.33android-11.0.0_r0.32android-msm-redfin-4.19-android11-qpr1android-msm-redbull-4.19-android11-qpr2android-msm-bramble-4.19-android11-qpr1
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |