summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bio/bss_bio.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-05-30 06:22:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-05-30 06:22:58 +0000
commit92fe7f51d198ea62cc552bf356ca8d58fa48417f (patch)
treeb9cbba44945fc3ef0c4bbbd4778edfff3328f155 /lib/libcrypto/bio/bss_bio.c
parent5e5527b3e65377286505a3ba5f9a7f0fa64f00f1 (diff)
more: no need for null check before free
ok tedu guenther
Diffstat (limited to 'lib/libcrypto/bio/bss_bio.c')
-rw-r--r--lib/libcrypto/bio/bss_bio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libcrypto/bio/bss_bio.c b/lib/libcrypto/bio/bss_bio.c
index eda2e2a55c2..519002beed7 100644
--- a/lib/libcrypto/bio/bss_bio.c
+++ b/lib/libcrypto/bio/bss_bio.c
@@ -160,12 +160,8 @@ bio_free(BIO *bio)
if (b->peer)
bio_destroy_pair(bio);
- if (b->buf != NULL) {
- free(b->buf);
- }
-
+ free(b->buf);
free(b);
-
return 1;
}