summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ex_data.c
diff options
context:
space:
mode:
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;