lib: Fix memory leak in fpi_poll_exit()
The active_timers list was freed, but not the elements themselves.
This commit is contained in:
parent
ccdecdea11
commit
2954583373
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ void fpi_poll_init(void)
|
||||||
|
|
||||||
void fpi_poll_exit(void)
|
void fpi_poll_exit(void)
|
||||||
{
|
{
|
||||||
g_slist_free(active_timers);
|
g_slist_free_full(active_timers, g_free);
|
||||||
active_timers = NULL;
|
active_timers = NULL;
|
||||||
fd_added_cb = NULL;
|
fd_added_cb = NULL;
|
||||||
fd_removed_cb = NULL;
|
fd_removed_cb = NULL;
|
||||||
|
|
Loading…
Reference in a new issue