diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/pcy_data.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/pcy_data.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/pcy_data.c b/src/lib/libcrypto/x509v3/pcy_data.c index 3444b03195..7c80915f5b 100644 --- a/src/lib/libcrypto/x509v3/pcy_data.c +++ b/src/lib/libcrypto/x509v3/pcy_data.c | |||
@@ -72,7 +72,7 @@ void policy_data_free(X509_POLICY_DATA *data) | |||
72 | sk_POLICYQUALINFO_pop_free(data->qualifier_set, | 72 | sk_POLICYQUALINFO_pop_free(data->qualifier_set, |
73 | POLICYQUALINFO_free); | 73 | POLICYQUALINFO_free); |
74 | sk_ASN1_OBJECT_pop_free(data->expected_policy_set, ASN1_OBJECT_free); | 74 | sk_ASN1_OBJECT_pop_free(data->expected_policy_set, ASN1_OBJECT_free); |
75 | OPENSSL_free(data); | 75 | free(data); |
76 | } | 76 | } |
77 | 77 | ||
78 | /* Create a data based on an existing policy. If 'id' is NULL use the | 78 | /* Create a data based on an existing policy. If 'id' is NULL use the |
@@ -97,13 +97,13 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, | |||
97 | } | 97 | } |
98 | else | 98 | else |
99 | id = NULL; | 99 | id = NULL; |
100 | ret = OPENSSL_malloc(sizeof(X509_POLICY_DATA)); | 100 | ret = malloc(sizeof(X509_POLICY_DATA)); |
101 | if (!ret) | 101 | if (!ret) |
102 | return NULL; | 102 | return NULL; |
103 | ret->expected_policy_set = sk_ASN1_OBJECT_new_null(); | 103 | ret->expected_policy_set = sk_ASN1_OBJECT_new_null(); |
104 | if (!ret->expected_policy_set) | 104 | if (!ret->expected_policy_set) |
105 | { | 105 | { |
106 | OPENSSL_free(ret); | 106 | free(ret); |
107 | if (id) | 107 | if (id) |
108 | ASN1_OBJECT_free(id); | 108 | ASN1_OBJECT_free(id); |
109 | return NULL; | 109 | return NULL; |