]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
free sw, as it's now allocated in the context of sc
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 May 2017 20:51:37 +0000 (16:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 May 2017 20:51:37 +0000 (16:51 -0400)
src/lib/io/schedule.c

index 24df0dbd38a18b4dd79142ddb7c19c36cf9fdaf9..2e87aad883ae46da4d3b4edbabacaab4dcfcb65e 100644 (file)
@@ -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);
        }
 
        /*