From c34fac2dfaf2da90889ed845a5139c916868eea2 Mon Sep 17 00:00:00 2001 From: miod <> Date: Thu, 22 May 2014 21:12:16 +0000 Subject: if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully eyeballed before applying. Contributed by Cyril Roelandt on tech@ --- src/lib/libcrypto/aes/aes_wrap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/aes/aes_wrap.c') 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, ret = 1; err: - if (otmp) - free(otmp); - if (ptmp) - free(ptmp); + free(otmp); + free(ptmp); return ret; } -- cgit v1.2.3-55-g6feb