lib: Fix memory leak in fpi_poll_exit()

The active_timers list was freed, but not the elements themselves.
This commit is contained in:
Bastien Nocera 2018-09-27 11:52:23 +02:00
parent ccdecdea11
commit 2954583373

View file

@ -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;