summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3/v3_utl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/x509v3/v3_utl.c')
-rw-r--r--lib/libcrypto/x509v3/v3_utl.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/libcrypto/x509v3/v3_utl.c b/lib/libcrypto/x509v3/v3_utl.c
index 0b389807dd9..3134feff21f 100644
--- a/lib/libcrypto/x509v3/v3_utl.c
+++ b/lib/libcrypto/x509v3/v3_utl.c
@@ -103,12 +103,9 @@ X509V3_add_value(const char *name, const char *value,
err:
X509V3err(X509V3_F_X509V3_ADD_VALUE, ERR_R_MALLOC_FAILURE);
- if (vtmp)
- free(vtmp);
- if (tname)
- free(tname);
- if (tvalue)
- free(tvalue);
+ free(vtmp);
+ free(tname);
+ free(tvalue);
return 0;
}
@@ -126,12 +123,9 @@ X509V3_conf_free(CONF_VALUE *conf)
{
if (!conf)
return;
- if (conf->name)
- free(conf->name);
- if (conf->value)
- free(conf->value);
- if (conf->section)
- free(conf->section);
+ free(conf->name);
+ free(conf->value);
+ free(conf->section);
free(conf);
}