summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/apps/pkeyutl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/apps/pkeyutl.c')
-rw-r--r--lib/libssl/src/apps/pkeyutl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libssl/src/apps/pkeyutl.c b/lib/libssl/src/apps/pkeyutl.c
index 46392e6902e..4f1cfed0e8b 100644
--- a/lib/libssl/src/apps/pkeyutl.c
+++ b/lib/libssl/src/apps/pkeyutl.c
@@ -322,12 +322,10 @@ end:
EVP_PKEY_CTX_free(ctx);
BIO_free(in);
BIO_free_all(out);
- if (buf_in)
- free(buf_in);
- if (buf_out)
- free(buf_out);
- if (sig)
- free(sig);
+ free(buf_in);
+ free(buf_out);
+ free(sig);
+
return ret;
}