diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-30 06:22:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-30 06:22:58 +0000 |
commit | 92fe7f51d198ea62cc552bf356ca8d58fa48417f (patch) | |
tree | b9cbba44945fc3ef0c4bbbd4778edfff3328f155 /lib/libcrypto/bio/bss_bio.c | |
parent | 5e5527b3e65377286505a3ba5f9a7f0fa64f00f1 (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.c | 6 |
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; } |