From: Thomas Pornin Date: Wed, 9 Nov 2016 20:00:11 +0000 (+0100) Subject: No need to check for NULL, free_private_key() already does that. X-Git-Tag: v0.4~63 X-Git-Url: https://bearssl.org/gitweb//home/git/?a=commitdiff_plain;h=6b4cd8609450f294071b38f478bec3b6b8c48ce5;p=BearSSL No need to check for NULL, free_private_key() already does that. --- diff --git a/tools/server.c b/tools/server.c index 0572928..89d529b 100644 --- a/tools/server.c +++ b/tools/server.c @@ -1036,9 +1036,7 @@ server_exit: } xfree(chain); } - if (sk != NULL) { - free_private_key(sk); - } + free_private_key(sk); xfree(iobuf); xfree(cache); if (fd >= 0) {