From 29545833735b53ac7a060f8c54d4345494146215 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 27 Sep 2018 11:52:23 +0200 Subject: [PATCH] lib: Fix memory leak in fpi_poll_exit() The active_timers list was freed, but not the elements themselves. --- libfprint/fpi-poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fpi-poll.c b/libfprint/fpi-poll.c index ee7d86d..b51fcb7 100644 --- a/libfprint/fpi-poll.c +++ b/libfprint/fpi-poll.c @@ -413,7 +413,7 @@ void fpi_poll_init(void) void fpi_poll_exit(void) { - g_slist_free(active_timers); + g_slist_free_full(active_timers, g_free); active_timers = NULL; fd_added_cb = NULL; fd_removed_cb = NULL;