summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio/bf_nbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/bio/bf_nbio.c')
-rw-r--r--lib/libcrypto/bio/bf_nbio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/bf_nbio.c b/lib/libcrypto/bio/bf_nbio.c
index 5a0f6b276a5..9b0ec7d41f9 100644
--- a/lib/libcrypto/bio/bf_nbio.c
+++ b/lib/libcrypto/bio/bf_nbio.c
@@ -119,8 +119,7 @@ nbiof_free(BIO *a)
{
if (a == NULL)
return (0);
- if (a->ptr != NULL)
- free(a->ptr);
+ free(a->ptr);
a->ptr = NULL;
a->init = 0;
a->flags = 0;