summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_env.c
diff options
context:
space:
mode:
authormiod <>2014-05-22 21:12:16 +0000
committermiod <>2014-05-22 21:12:16 +0000
commitc34fac2dfaf2da90889ed845a5139c916868eea2 (patch)
treefd278ca4aaae51bbb11f6b3d67d862d9827370bc /src/lib/libcrypto/cms/cms_env.c
parent5f35ad01d525b3834ce610866244a942ee37c441 (diff)
downloadopenbsd-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 'src/lib/libcrypto/cms/cms_env.c')
-rw-r--r--src/lib/libcrypto/cms/cms_env.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cms/cms_env.c b/src/lib/libcrypto/cms/cms_env.c
index 78fa2aa7b7..5e6e7033b2 100644
--- a/src/lib/libcrypto/cms/cms_env.c
+++ b/src/lib/libcrypto/cms/cms_env.c
@@ -354,8 +354,7 @@ static int cms_RecipientInfo_ktri_encrypt(CMS_ContentInfo *cms,
354 err: 354 err:
355 if (pctx) 355 if (pctx)
356 EVP_PKEY_CTX_free(pctx); 356 EVP_PKEY_CTX_free(pctx);
357 if (ek) 357 free(ek);
358 free(ek);
359 return ret; 358 return ret;
360 359
361 } 360 }