From 955c05a94229ee790afe8981287365daa06c6db9 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 1 Jan 2018 19:16:47 -0600 Subject: [PATCH] Fix memory leak in select_loop --- src/util/scheduler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 9bd776517..b96e4e6c4 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -2277,6 +2277,8 @@ select_loop (void *cls, } #endif GNUNET_assert (0); + GNUNET_NETWORK_fdset_destroy (rs); + GNUNET_NETWORK_fdset_destroy (ws); return GNUNET_SYSERR; } for (pos = context->scheduled_head; NULL != pos; pos = pos->next) @@ -2302,6 +2304,8 @@ select_loop (void *cls, tasks_ready = GNUNET_SCHEDULER_run_from_driver (sh); GNUNET_assert (GNUNET_SYSERR != tasks_ready); } + GNUNET_NETWORK_fdset_destroy (rs); + GNUNET_NETWORK_fdset_destroy (ws); return GNUNET_OK; } -- 2.25.1