summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeghana Barkalle <mbarkalle@google.com>2023-05-03 21:23:09 +0000
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-12-13 16:36:31 +0000
commit61d154cf6e0ce8ee91000c5ea8aab389a113107e (patch)
treef72763c223a7d6042eb7d616560f583aa9dc31d4
parent12ca3ee95d997babfd1443ebebc1ea218d55ab0c (diff)
downloadlwis-61d154cf6e0ce8ee91000c5ea8aab389a113107e.tar.gz
LWIS: Fix memory leak
Fix memory leak while freeing the periodic IO proxy structures. Bug: 299130975 Test: GCA smoke test, Unit tests, CTS tests Change-Id: I5342d99288a943f6906592aafce9e0483e9d1af6 (cherry picked from commit 58677b923ed94e162861a859e32131b709db0c2f) Signed-off-by: Meghana Barkalle <mbarkalle@google.com>
-rw-r--r--lwis_periodic_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lwis_periodic_io.c b/lwis_periodic_io.c
index ad5ef83..39145ab 100644
--- a/lwis_periodic_io.c
+++ b/lwis_periodic_io.c
@@ -352,6 +352,7 @@ void lwis_process_periodic_io_in_queue(struct lwis_client *client)
process_io_entries(client, periodic_io_proxy, &pending_events);
spin_lock_irqsave(&client->periodic_io_lock, flags);
}
+ lwis_allocator_free(client->lwis_dev, periodic_io_proxy);
}
spin_unlock_irqrestore(&client->periodic_io_lock, flags);
lwis_pending_events_emit(client->lwis_dev, &pending_events);