diff options
author | miod <> | 2014-05-22 21:12:16 +0000 |
---|---|---|
committer | miod <> | 2014-05-22 21:12:16 +0000 |
commit | c34fac2dfaf2da90889ed845a5139c916868eea2 (patch) | |
tree | fd278ca4aaae51bbb11f6b3d67d862d9827370bc /src/lib/libcrypto/dsa/dsa_pmeth.c | |
parent | 5f35ad01d525b3834ce610866244a942ee37c441 (diff) | |
download | openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.tar.gz openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.tar.bz2 openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.zip |
if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_pmeth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_pmeth.c b/src/lib/libcrypto/dsa/dsa_pmeth.c index 4e77c6f64b..a2b3b7f21a 100644 --- a/src/lib/libcrypto/dsa/dsa_pmeth.c +++ b/src/lib/libcrypto/dsa/dsa_pmeth.c | |||
@@ -113,8 +113,7 @@ static int pkey_dsa_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) | |||
113 | static void pkey_dsa_cleanup(EVP_PKEY_CTX *ctx) | 113 | static void pkey_dsa_cleanup(EVP_PKEY_CTX *ctx) |
114 | { | 114 | { |
115 | DSA_PKEY_CTX *dctx = ctx->data; | 115 | DSA_PKEY_CTX *dctx = ctx->data; |
116 | if (dctx) | 116 | free(dctx); |
117 | free(dctx); | ||
118 | } | 117 | } |
119 | 118 | ||
120 | static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | 119 | static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, |