summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x_attrib.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/x_attrib.c')
-rw-r--r--crypto/x509/x_attrib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/x509/x_attrib.c b/crypto/x509/x_attrib.c
index 9ff6dcc687..9782fda474 100644
--- a/crypto/x509/x_attrib.c
+++ b/crypto/x509/x_attrib.c
@@ -98,8 +98,7 @@ X509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value)
ASN1_TYPE_set(val, atrtype, value);
return (ret);
err:
- if (ret != NULL)
- X509_ATTRIBUTE_free(ret);
+ X509_ATTRIBUTE_free(ret);
ASN1_TYPE_free(val);
return (NULL);
}