summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ex_data.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/ex_data.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 '')
-rw-r--r--src/lib/libcrypto/ex_data.c9
1 files changed, 3 insertions, 6 deletions
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:
444 storage[i]->argl, storage[i]->argp); 444 storage[i]->argl, storage[i]->argp);
445 } 445 }
446 } 446 }
447 if (storage) 447 free(storage);
448 free(storage);
449 return 1; 448 return 1;
450} 449}
451 450
@@ -489,8 +488,7 @@ skip:
489 storage[i]->argl, storage[i]->argp); 488 storage[i]->argl, storage[i]->argp);
490 CRYPTO_set_ex_data(to, i, ptr); 489 CRYPTO_set_ex_data(to, i, ptr);
491 } 490 }
492 if (storage) 491 free(storage);
493 free(storage);
494 return 1; 492 return 1;
495} 493}
496 494
@@ -527,8 +525,7 @@ skip:
527 storage[i]->argl, storage[i]->argp); 525 storage[i]->argl, storage[i]->argp);
528 } 526 }
529 } 527 }
530 if (storage) 528 free(storage);
531 free(storage);
532 if (ad->sk) { 529 if (ad->sk) {
533 sk_void_free(ad->sk); 530 sk_void_free(ad->sk);
534 ad->sk = NULL; 531 ad->sk = NULL;