diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_conf.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_conf.c b/src/lib/libcrypto/x509v3/v3_conf.c index e22aa50fcd..bfdb473b19 100644 --- a/src/lib/libcrypto/x509v3/v3_conf.c +++ b/src/lib/libcrypto/x509v3/v3_conf.c | |||
@@ -313,8 +313,7 @@ v3_generic_extension(const char *ext, char *value, int crit, int gen_type, | |||
313 | err: | 313 | err: |
314 | ASN1_OBJECT_free(obj); | 314 | ASN1_OBJECT_free(obj); |
315 | M_ASN1_OCTET_STRING_free(oct); | 315 | M_ASN1_OCTET_STRING_free(oct); |
316 | if (ext_der) | 316 | free(ext_der); |
317 | free(ext_der); | ||
318 | return extension; | 317 | return extension; |
319 | } | 318 | } |
320 | 319 | ||
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index c3328d668d..5b064f8eb2 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
@@ -422,7 +422,7 @@ unsigned char *string_to_hex(const char *str, long *len) | |||
422 | return hexbuf; | 422 | return hexbuf; |
423 | 423 | ||
424 | err: | 424 | err: |
425 | if(hexbuf) free(hexbuf); | 425 | free(hexbuf); |
426 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); | 426 | X509V3err(X509V3_F_STRING_TO_HEX,ERR_R_MALLOC_FAILURE); |
427 | return NULL; | 427 | return NULL; |
428 | 428 | ||
@@ -623,8 +623,7 @@ ASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc) | |||
623 | return ret; | 623 | return ret; |
624 | 624 | ||
625 | err: | 625 | err: |
626 | if (iptmp) | 626 | free(iptmp); |
627 | free(iptmp); | ||
628 | if (ret) | 627 | if (ret) |
629 | ASN1_OCTET_STRING_free(ret); | 628 | ASN1_OCTET_STRING_free(ret); |
630 | return NULL; | 629 | return NULL; |