summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libcrypto/engine')
-rw-r--r--src/regress/lib/libcrypto/engine/enginetest.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c
index bb2472a31d..f39857d6d6 100644
--- a/src/regress/lib/libcrypto/engine/enginetest.c
+++ b/src/regress/lib/libcrypto/engine/enginetest.c
@@ -129,8 +129,7 @@ int main(int argc, char *argv[])
129 printf("Remove failed!\n"); 129 printf("Remove failed!\n");
130 goto end; 130 goto end;
131 } 131 }
132 if (ptr) 132 ENGINE_free(ptr);
133 ENGINE_free(ptr);
134 display_engine_list(); 133 display_engine_list();
135 if (!ENGINE_add(new_h3) || !ENGINE_add(new_h2)) { 134 if (!ENGINE_add(new_h3) || !ENGINE_add(new_h2)) {
136 printf("Add failed!\n"); 135 printf("Add failed!\n");
@@ -178,8 +177,7 @@ int main(int argc, char *argv[])
178 if (!ENGINE_remove(ptr)) 177 if (!ENGINE_remove(ptr))
179 printf("Remove failed!i - probably no hardware " 178 printf("Remove failed!i - probably no hardware "
180 "support present.\n"); 179 "support present.\n");
181 if (ptr) 180 ENGINE_free(ptr);
182 ENGINE_free(ptr);
183 display_engine_list(); 181 display_engine_list();
184 182
185 if (!ENGINE_add(new_h1) || !ENGINE_remove(new_h1)) { 183 if (!ENGINE_add(new_h1) || !ENGINE_remove(new_h1)) {
@@ -231,13 +229,12 @@ int main(int argc, char *argv[])
231end: 229end:
232 if (to_return) 230 if (to_return)
233 ERR_print_errors_fp(stderr); 231 ERR_print_errors_fp(stderr);
234 if (new_h1) ENGINE_free(new_h1); 232 ENGINE_free(new_h1);
235 if (new_h2) ENGINE_free(new_h2); 233 ENGINE_free(new_h2);
236 if (new_h3) ENGINE_free(new_h3); 234 ENGINE_free(new_h3);
237 if (new_h4) ENGINE_free(new_h4); 235 ENGINE_free(new_h4);
238 for (loop = 0; loop < 512; loop++) 236 for (loop = 0; loop < 512; loop++)
239 if (block[loop]) 237 ENGINE_free(block[loop]);
240 ENGINE_free(block[loop]);
241 ENGINE_cleanup(); 238 ENGINE_cleanup();
242 CRYPTO_cleanup_all_ex_data(); 239 CRYPTO_cleanup_all_ex_data();
243 ERR_free_strings(); 240 ERR_free_strings();