From: Alan T. DeKok Date: Tue, 23 May 2017 20:51:37 +0000 (-0400) Subject: free sw, as it's now allocated in the context of sc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d080481af6fd623bc2132bf7ae9520068557e3fd;p=thirdparty%2Ffreeradius-server.git free sw, as it's now allocated in the context of sc --- diff --git a/src/lib/io/schedule.c b/src/lib/io/schedule.c index 24df0dbd38a..2e87aad883a 100644 --- a/src/lib/io/schedule.c +++ b/src/lib/io/schedule.c @@ -603,10 +603,7 @@ int fr_schedule_destroy(fr_schedule_t *sc) * Pop the "done" workers, and free their contexts here. */ while ((sw = fr_heap_pop(sc->done_workers)) != NULL) { - TALLOC_CTX *ctx; - - ctx = talloc_parent(sw); - talloc_free(ctx); + talloc_free(sw); } /*