summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_dyn.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/engine/eng_dyn.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/engine/eng_dyn.c')
-rw-r--r--src/lib/libcrypto/engine/eng_dyn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/engine/eng_dyn.c b/src/lib/libcrypto/engine/eng_dyn.c
index 7878bd802e..f59d768350 100644
--- a/src/lib/libcrypto/engine/eng_dyn.c
+++ b/src/lib/libcrypto/engine/eng_dyn.c
@@ -222,8 +222,7 @@ static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx)
222 CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); 222 CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE);
223 /* If we lost the race to set the context, c is non-NULL and *ctx is the 223 /* If we lost the race to set the context, c is non-NULL and *ctx is the
224 * context of the thread that won. */ 224 * context of the thread that won. */
225 if(c) 225 free(c);
226 free(c);
227 return 1; 226 return 1;
228 } 227 }
229 228