summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio/bf_lbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/bio/bf_lbuf.c')
-rw-r--r--lib/libcrypto/bio/bf_lbuf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/bf_lbuf.c b/lib/libcrypto/bio/bf_lbuf.c
index 54c370d0380..42c0e1dca59 100644
--- a/lib/libcrypto/bio/bf_lbuf.c
+++ b/lib/libcrypto/bio/bf_lbuf.c
@@ -131,8 +131,7 @@ linebuffer_free(BIO *a)
if (a == NULL)
return (0);
b = (BIO_LINEBUFFER_CTX *)a->ptr;
- if (b->obuf != NULL)
- free(b->obuf);
+ free(b->obuf);
free(a->ptr);
a->ptr = NULL;
a->init = 0;