summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes_wrap.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/aes/aes_wrap.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/aes/aes_wrap.c')
-rw-r--r--src/lib/libcrypto/aes/aes_wrap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/aes/aes_wrap.c b/src/lib/libcrypto/aes/aes_wrap.c
index 40533440bf..4a830da7e4 100644
--- a/src/lib/libcrypto/aes/aes_wrap.c
+++ b/src/lib/libcrypto/aes/aes_wrap.c
@@ -164,10 +164,8 @@ AES_wrap_unwrap_test(const unsigned char *kek, int keybits,
164 ret = 1; 164 ret = 1;
165 165
166err: 166err:
167 if (otmp) 167 free(otmp);
168 free(otmp); 168 free(ptmp);
169 if (ptmp)
170 free(ptmp);
171 169
172 return ret; 170 return ret;
173} 171}