From abd9b10898e82011a65d8e8fca56bf56532edd69 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 30 May 2014 06:22:57 +0000 Subject: more: no need for null check before free ok tedu guenther --- src/lib/libcrypto/bn/bn_print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/libcrypto/bn') diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index ea5fa5c3da..ad3a847f01 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/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) { -- cgit v1.2.3-55-g6feb