summaryrefslogtreecommitdiffstats
path: root/src/crypto/bn/convert.c
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-05-13 20:30:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-05-13 20:30:31 +0000
commit838711c53f430e0ef95d5dc5a476e19731365837 (patch)
tree6e43e34595ecf887c26c32b86d8ab097fe8cac64 /src/crypto/bn/convert.c
parentf48ecc4b1c648ebf747dfdf1d1ebd9171838ce07 (diff)
parent02d138cf70e3aa194b2e12187622e666a54858d3 (diff)
downloadexternal_boringssl-838711c53f430e0ef95d5dc5a476e19731365837.zip
external_boringssl-838711c53f430e0ef95d5dc5a476e19731365837.tar.gz
external_boringssl-838711c53f430e0ef95d5dc5a476e19731365837.tar.bz2
am 02d138cf: am e9ada863: external/boringssl: bump revision.
* commit '02d138cf70e3aa194b2e12187622e666a54858d3': external/boringssl: bump revision.
Diffstat (limited to 'src/crypto/bn/convert.c')
-rw-r--r--src/crypto/bn/convert.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/crypto/bn/convert.c b/src/crypto/bn/convert.c
index 9c7b9be..531b661 100644
--- a/src/crypto/bn/convert.c
+++ b/src/crypto/bn/convert.c
@@ -407,13 +407,9 @@ char *BN_bn2dec(const BIGNUM *a) {
ok = 1;
err:
- if (bn_data != NULL) {
- OPENSSL_free(bn_data);
- }
- if (t != NULL) {
- BN_free(t);
- }
- if (!ok && buf) {
+ OPENSSL_free(bn_data);
+ BN_free(t);
+ if (!ok) {
OPENSSL_free(buf);
buf = NULL;
}