diff options
| author | deraadt <> | 2014-05-30 06:22:57 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-05-30 06:22:57 +0000 |
| commit | 93efbaa11c9b941fe460a1f6bfa75b21d8624e53 (patch) | |
| tree | 1ff700d79cee9e764329e5c50d7eb8d5109789cc /src/lib/libcrypto/bio/bf_nbio.c | |
| parent | 4aef4566c1a41608b7d78a7d5cfc3e031b7e4fe3 (diff) | |
| download | openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.tar.gz openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.tar.bz2 openbsd-93efbaa11c9b941fe460a1f6bfa75b21d8624e53.zip | |
more: no need for null check before free
ok tedu guenther
Diffstat (limited to 'src/lib/libcrypto/bio/bf_nbio.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bf_nbio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c index 5a0f6b276a..9b0ec7d41f 100644 --- a/src/lib/libcrypto/bio/bf_nbio.c +++ b/src/lib/libcrypto/bio/bf_nbio.c | |||
| @@ -119,8 +119,7 @@ nbiof_free(BIO *a) | |||
| 119 | { | 119 | { |
| 120 | if (a == NULL) | 120 | if (a == NULL) |
| 121 | return (0); | 121 | return (0); |
| 122 | if (a->ptr != NULL) | 122 | free(a->ptr); |
| 123 | free(a->ptr); | ||
| 124 | a->ptr = NULL; | 123 | a->ptr = NULL; |
| 125 | a->init = 0; | 124 | a->init = 0; |
| 126 | a->flags = 0; | 125 | a->flags = 0; |
