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/bn | |
parent | 5e5527b3e65377286505a3ba5f9a7f0fa64f00f1 (diff) |
more: no need for null check before free
ok tedu guenther
Diffstat (limited to 'lib/libcrypto/bn')
-rw-r--r-- | lib/libcrypto/bn/bn_print.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/bn/bn_print.c b/lib/libcrypto/bn/bn_print.c index ea5fa5c3dae..ad3a847f01b 100644 --- a/lib/libcrypto/bn/bn_print.c +++ b/lib/libcrypto/bn/bn_print.c @@ -157,8 +157,7 @@ BN_bn2dec(const BIGNUM *a) ok = 1; err: - if (bn_data != NULL) - free(bn_data); + free(bn_data); if (t != NULL) BN_free(t); if (!ok && buf) { |