diff options
| author | 2014-05-19 12:13:30 +0000 | |
|---|---|---|
| committer | 2014-05-19 12:13:30 +0000 | |
| commit | 7dc304aadc7dce4fbb9a8f3931d77cdca7c65042 (patch) | |
| tree | ce3a0778eb14bd880d642ec9fc70ef52c8126c0f /lib/libssl/src/apps/dsa.c | |
| parent | Nuke some trailing whitespace that snuck in. (diff) | |
| download | wireguard-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.c | 6 |
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); } |
