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/ex_data.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/lib/libcrypto/ex_data.c') diff --git a/src/lib/libcrypto/ex_data.c b/src/lib/libcrypto/ex_data.c index 77a91c4b04..d8d25d320e 100644 --- a/src/lib/libcrypto/ex_data.c +++ b/src/lib/libcrypto/ex_data.c @@ -444,8 +444,7 @@ skip: storage[i]->argl, storage[i]->argp); } } - if (storage) - free(storage); + free(storage); return 1; } @@ -489,8 +488,7 @@ skip: storage[i]->argl, storage[i]->argp); CRYPTO_set_ex_data(to, i, ptr); } - if (storage) - free(storage); + free(storage); return 1; } @@ -527,8 +525,7 @@ skip: storage[i]->argl, storage[i]->argp); } } - if (storage) - free(storage); + free(storage); if (ad->sk) { sk_void_free(ad->sk); ad->sk = NULL; -- cgit v1.2.3-55-g6feb