]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
free children before parent
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Apr 2018 13:10:00 +0000 (09:10 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Apr 2018 13:10:00 +0000 (09:10 -0400)
src/modules/proto_radius/io.c

index 9f1a219a166eb29f33dc176bac8754ee718b56f0..c48d5322f89763802dc127b24f4062af10bff304 100644 (file)
@@ -1990,6 +1990,9 @@ static int mod_close(void *instance)
         */
        if (connection) {
                DEBUG("Closing connection %s", connection->name);
+               if (connection->client->pending) {
+                       TALLOC_FREE(connection->client->pending); /* for any pending packets */
+               }
                talloc_free(connection->dl_inst);
        }