From: Jorge Pereira Date: Wed, 19 Aug 2020 16:14:19 +0000 (-0300) Subject: master: Remove redundancy X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fc87b384565f7734d2859ba90e583daec88ade5;p=thirdparty%2Ffreeradius-server.git master: Remove redundancy --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index 6f8f8c9ce17..9467906dea5 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -441,7 +441,7 @@ static int count_connections(void *ctx, UNUSED uint8_t const *key, UNUSED size_t static int _client_free(fr_io_client_t *client) { - if (client->pending) TALLOC_FREE(client->pending); + TALLOC_FREE(client->pending); return 0; } @@ -452,7 +452,8 @@ static int connection_free(fr_io_connection_t *connection) * This is it's own talloc context, as there are * thousands of packets associated with it. */ - talloc_free(connection->client); + TALLOC_FREE(connection->client); + return 0; }