summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bn
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/bn
parent5e5527b3e65377286505a3ba5f9a7f0fa64f00f1 (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.c3
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) {