crypto/asn1/evp_asn1.c:69: error: MEMORY_LEAK
  memory dynamically allocated to `return` by call to `ASN1_STRING_type_new()` at line 68, column 10 is not reachable after line 69, column 43.
Showing all 14 steps of the trace


crypto/asn1/evp_asn1.c:64:1: start of procedure ASN1_TYPE_set_octetstring()
62.   #include <openssl/asn1_mac.h>
63.   
64. > int ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len)
65.   	{
66.   	ASN1_STRING *os;

crypto/asn1/evp_asn1.c:68:6: 
66.   	ASN1_STRING *os;
67.   
68. > 	if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0);
69.   	if (!ASN1_OCTET_STRING_set(os,data,len)) return(0);
70.   	ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os);

crypto/asn1/asn1_lib.c:363:1: start of procedure ASN1_STRING_type_new()
  361.   
  362.   
  363. > ASN1_STRING *ASN1_STRING_type_new(int type)
  364.   	{
  365.   	ASN1_STRING *ret;

crypto/asn1/asn1_lib.c:367:2: 
  365.   	ASN1_STRING *ret;
  366.   
  367. > 	ret=(ASN1_STRING *)Malloc(sizeof(ASN1_STRING));
  368.   	if (ret == NULL)
  369.   		{

crypto/asn1/asn1_lib.c:368:6: Taking false branch
  366.   
  367.   	ret=(ASN1_STRING *)Malloc(sizeof(ASN1_STRING));
  368.   	if (ret == NULL)
              ^
  369.   		{
  370.   		ASN1err(ASN1_F_ASN1_STRING_TYPE_NEW,ERR_R_MALLOC_FAILURE);

crypto/asn1/asn1_lib.c:373:2: 
  371.   		return(NULL);
  372.   		}
  373. > 	ret->length=0;
  374.   	ret->type=type;
  375.   	ret->data=NULL;

crypto/asn1/asn1_lib.c:374:2: 
  372.   		}
  373.   	ret->length=0;
  374. > 	ret->type=type;
  375.   	ret->data=NULL;
  376.   	ret->flags=0;

crypto/asn1/asn1_lib.c:375:2: 
  373.   	ret->length=0;
  374.   	ret->type=type;
  375. > 	ret->data=NULL;
  376.   	ret->flags=0;
  377.   	return(ret);

crypto/asn1/asn1_lib.c:376:2: 
  374.   	ret->type=type;
  375.   	ret->data=NULL;
  376. > 	ret->flags=0;
  377.   	return(ret);
  378.   	}

crypto/asn1/asn1_lib.c:377:2: 
  375.   	ret->data=NULL;
  376.   	ret->flags=0;
  377. > 	return(ret);
  378.   	}
  379.   

crypto/asn1/asn1_lib.c:378:2: return from a call to ASN1_STRING_type_new
  376.   	ret->flags=0;
  377.   	return(ret);
  378.   	}
          ^
  379.   
  380.   void ASN1_STRING_free(ASN1_STRING *a)

crypto/asn1/evp_asn1.c:68:6: Taking false branch
66.   	ASN1_STRING *os;
67.   
68.   	if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0);
           ^
69.   	if (!ASN1_OCTET_STRING_set(os,data,len)) return(0);
70.   	ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os);

crypto/asn1/evp_asn1.c:69:7: Taking true branch
67.   
68.   	if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0);
69.   	if (!ASN1_OCTET_STRING_set(os,data,len)) return(0);
            ^
70.   	ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os);
71.   	return(1);

crypto/asn1/evp_asn1.c:69:43: 
67.   
68.   	if ((os=ASN1_OCTET_STRING_new()) == NULL) return(0);
69. > 	if (!ASN1_OCTET_STRING_set(os,data,len)) return(0);
70.   	ASN1_TYPE_set(a,V_ASN1_OCTET_STRING,(char *)os);
71.   	return(1);
