diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_utl.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index 0b389807dd..3134feff21 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
@@ -103,12 +103,9 @@ X509V3_add_value(const char *name, const char *value, | |||
103 | 103 | ||
104 | err: | 104 | err: |
105 | X509V3err(X509V3_F_X509V3_ADD_VALUE, ERR_R_MALLOC_FAILURE); | 105 | X509V3err(X509V3_F_X509V3_ADD_VALUE, ERR_R_MALLOC_FAILURE); |
106 | if (vtmp) | 106 | free(vtmp); |
107 | free(vtmp); | 107 | free(tname); |
108 | if (tname) | 108 | free(tvalue); |
109 | free(tname); | ||
110 | if (tvalue) | ||
111 | free(tvalue); | ||
112 | return 0; | 109 | return 0; |
113 | } | 110 | } |
114 | 111 | ||
@@ -126,12 +123,9 @@ X509V3_conf_free(CONF_VALUE *conf) | |||
126 | { | 123 | { |
127 | if (!conf) | 124 | if (!conf) |
128 | return; | 125 | return; |
129 | if (conf->name) | 126 | free(conf->name); |
130 | free(conf->name); | 127 | free(conf->value); |
131 | if (conf->value) | 128 | free(conf->section); |
132 | free(conf->value); | ||
133 | if (conf->section) | ||
134 | free(conf->section); | ||
135 | free(conf); | 129 | free(conf); |
136 | } | 130 | } |
137 | 131 | ||