summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-04-30 18:10:52 -0400
committerRich Salz <rsalz@openssl.org>2015-04-30 18:10:52 -0400
commit895cba195a0c8430dcc8d1aa22b75eccaaee8f49 (patch)
tree198a8361064426dbc73c52143123835dfc8017a2 /apps/ocsp.c
parentb0696f8b0b6e9a837e0abe4d79a8219e287c9036 (diff)
free cleanup 12
Don't check for NULL before calling free function. This gets: NAME_CONSTRAINTS_free GENERAL_SUBTREE_free ECDSA_METHOD_free JPAKE_CTX_free OCSP_REQ_CTX_free SCT_free SRP_VBASE_free SRP_gN_free SRP_user_pwd_free TXT_DB_free Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index 680cc0a79e..20dc1ae4cc 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -1229,8 +1229,7 @@ static OCSP_RESPONSE *query_responder(BIO *cbio, const char *path,
}
err:
- if (ctx)
- OCSP_REQ_CTX_free(ctx);
+ OCSP_REQ_CTX_free(ctx);
return rsp;
}