]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
master: Remove redundancy
authorJorge Pereira <jpereiran@gmail.com>
Wed, 19 Aug 2020 16:14:19 +0000 (13:14 -0300)
committerAlan DeKok <aland@freeradius.org>
Thu, 20 Aug 2020 01:54:28 +0000 (21:54 -0400)
src/lib/io/master.c

index 6f8f8c9ce1703e061fed4d12c9082bb43fece067..9467906dea584e2abf55a23b66e0a41bb310de3d 100644 (file)
@@ -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;
 }