From: David Barksdale Date: Tue, 2 Jan 2018 01:16:47 +0000 (-0600) Subject: Fix memory leak in select_loop X-Git-Tag: gnunet-0.11.0rc0~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=955c05a94229ee790afe8981287365daa06c6db9;p=oweals%2Fgnunet.git Fix memory leak in select_loop --- 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; }