diff options
author | miod <> | 2014-07-12 16:03:37 +0000 |
---|---|---|
committer | miod <> | 2014-07-12 16:03:37 +0000 |
commit | 1ae7466a2fdd60df6484d8d132d70a044fd58c92 (patch) | |
tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/dsa/dsa_key.c | |
parent | 3c4c98fca81949fb441815860d40ad66626df65d (diff) | |
download | openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.gz openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.bz2 openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.zip |
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index 4573ecbcce..4dc28dbb90 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_key.c,v 1.18 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_key.c,v 1.19 2014/07/12 16:03:37 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -128,8 +128,7 @@ err: | |||
128 | BN_free(pub_key); | 128 | BN_free(pub_key); |
129 | if (priv_key != NULL && dsa->priv_key == NULL) | 129 | if (priv_key != NULL && dsa->priv_key == NULL) |
130 | BN_free(priv_key); | 130 | BN_free(priv_key); |
131 | if (ctx != NULL) | 131 | BN_CTX_free(ctx); |
132 | BN_CTX_free(ctx); | ||
133 | return ok; | 132 | return ok; |
134 | } | 133 | } |
135 | #endif | 134 | #endif |