aboutsummaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/evp_test.c')
-rw-r--r--test/evp_test.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index 7187624d58..4b5b9aa5e3 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -251,12 +251,10 @@ static void free_expected(struct evp_test *t)
{
OPENSSL_free(t->expected_err);
t->expected_err = NULL;
- if (t->out_expected) {
- OPENSSL_free(t->out_expected);
- OPENSSL_free(t->out_got);
- t->out_expected = NULL;
- t->out_got = NULL;
- }
+ OPENSSL_free(t->out_expected);
+ OPENSSL_free(t->out_got);
+ t->out_expected = NULL;
+ t->out_got = NULL;
}
static void print_expected(struct evp_test *t)