summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/apps/dsa.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-19 12:13:30 +0000
committerjsing <jsing@openbsd.org>2014-05-19 12:13:30 +0000
commit7dc304aadc7dce4fbb9a8f3931d77cdca7c65042 (patch)
treece3a0778eb14bd880d642ec9fc70ef52c8126c0f /lib/libssl/src/apps/dsa.c
parentNuke some trailing whitespace that snuck in. (diff)
downloadwireguard-openbsd-7dc304aadc7dce4fbb9a8f3931d77cdca7c65042.tar.xz
wireguard-openbsd-7dc304aadc7dce4fbb9a8f3931d77cdca7c65042.zip
It is perfectly valid to call free(NULL), so stop checking for non-NULL
before calling free - of some course parts of the code already did this.
Diffstat (limited to 'lib/libssl/src/apps/dsa.c')
-rw-r--r--lib/libssl/src/apps/dsa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libssl/src/apps/dsa.c b/lib/libssl/src/apps/dsa.c
index 4026ba5d229..c35d15016a5 100644
--- a/lib/libssl/src/apps/dsa.c
+++ b/lib/libssl/src/apps/dsa.c
@@ -332,10 +332,8 @@ end:
BIO_free_all(out);
if (dsa != NULL)
DSA_free(dsa);
- if (passin)
- free(passin);
- if (passout)
- free(passout);
+ free(passin);
+ free(passout);
return (ret);
}