summaryrefslogtreecommitdiff
path: root/lib/libcrypto/conf
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-05-30 02:52:12 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-05-30 02:52:12 +0000
commit890019d42bea9ea72b2a114957766c9c1b3cb7e3 (patch)
treedb57e71a5688e5229112337dcc33ca76da88d600 /lib/libcrypto/conf
parent8e9c3c8ab205533cebb588280a86d9ff2ec73fa2 (diff)
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'lib/libcrypto/conf')
-rw-r--r--lib/libcrypto/conf/conf_mod.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/conf/conf_mod.c b/lib/libcrypto/conf/conf_mod.c
index b5741047914..f7fdbfa6704 100644
--- a/lib/libcrypto/conf/conf_mod.c
+++ b/lib/libcrypto/conf/conf_mod.c
@@ -386,10 +386,8 @@ err:
memerr:
if (imod) {
- if (imod->name)
- free(imod->name);
- if (imod->value)
- free(imod->value);
+ free(imod->name);
+ free(imod->value);
free(imod);
}