summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/stack/stack.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-05-22 21:12:14 +0000
committermiod <miod@openbsd.org>2014-05-22 21:12:14 +0000
commit23438649799fddc3398a3cfe9081b5a637ff0e1e (patch)
treee3987d9b97aa3cb4d04705eb61e26ee985b10c76 /lib/libcrypto/stack/stack.c
parentwhen we reduced the number of iovec's we passed through an imsg, the iovec (diff)
downloadwireguard-openbsd-23438649799fddc3398a3cfe9081b5a637ff0e1e.tar.xz
wireguard-openbsd-23438649799fddc3398a3cfe9081b5a637ff0e1e.zip
if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@
Diffstat (limited to 'lib/libcrypto/stack/stack.c')
-rw-r--r--lib/libcrypto/stack/stack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/stack/stack.c b/lib/libcrypto/stack/stack.c
index e50967a0f1f..7eb00fd6e40 100644
--- a/lib/libcrypto/stack/stack.c
+++ b/lib/libcrypto/stack/stack.c
@@ -141,8 +141,7 @@ sk_new(int (*c)(const void *, const void *))
return (ret);
err:
- if (ret)
- free(ret);
+ free(ret);
return (NULL);
}