crypto/asn1/x_x509.c:121: error: MEMORY_LEAK
  memory dynamically allocated to `return` by call to `malloc()` at line 116, column 2 is not reachable after line 121, column 2.
Showing all 8 steps of the trace


crypto/asn1/x_x509.c:111:1: start of procedure X509_new()
109.   	}
110.   
111. > X509 *X509_new(void)
112.   	{
113.   	X509 *ret=NULL;

crypto/asn1/x_x509.c:113:2: 
111.   X509 *X509_new(void)
112.   	{
113. > 	X509 *ret=NULL;
114.   	ASN1_CTX c;
115.   

crypto/asn1/x_x509.c:116:2: Taking false branch
114.   	ASN1_CTX c;
115.   
116.   	M_ASN1_New_Malloc(ret,X509);
        ^
117.   	ret->references=1;
118.   	ret->valid=0;

crypto/asn1/x_x509.c:117:2: 
115.   
116.   	M_ASN1_New_Malloc(ret,X509);
117. > 	ret->references=1;
118.   	ret->valid=0;
119.   	ret->ex_flags = 0;

crypto/asn1/x_x509.c:118:2: 
116.   	M_ASN1_New_Malloc(ret,X509);
117.   	ret->references=1;
118. > 	ret->valid=0;
119.   	ret->ex_flags = 0;
120.   	ret->name=NULL;

crypto/asn1/x_x509.c:119:2: 
117.   	ret->references=1;
118.   	ret->valid=0;
119. > 	ret->ex_flags = 0;
120.   	ret->name=NULL;
121.   	M_ASN1_New(ret->cert_info,X509_CINF_new);

crypto/asn1/x_x509.c:120:2: 
118.   	ret->valid=0;
119.   	ret->ex_flags = 0;
120. > 	ret->name=NULL;
121.   	M_ASN1_New(ret->cert_info,X509_CINF_new);
122.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);

crypto/asn1/x_x509.c:121:2: Taking true branch
119.   	ret->ex_flags = 0;
120.   	ret->name=NULL;
121.   	M_ASN1_New(ret->cert_info,X509_CINF_new);
        ^
122.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
123.   	M_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new);

X509 *X509_new(void)
	{
	X509 *ret=NULL;
	ASN1_CTX c;
	M_ASN1_New_Malloc(ret,X509);
	ret->references=1;
	ret->valid=0;
	ret->ex_flags = 0;
	ret->name=NULL;
	M_ASN1_New(ret->cert_info,X509_CINF_new);
	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
	M_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new);
	CRYPTO_new_ex_data(x509_meth, (char *)ret, &ret->ex_data);
	return(ret);
	M_ASN1_New_Error(ASN1_F_X509_NEW);
	}
['X509 *X509_new(void)\n\t{\n\tX509 *ret=NULL;\n\tASN1_CTX c;\n\tM_ASN1_New_Malloc(ret,X509);\n\tret->references=1;\n\tret->valid=0;\n\tret->ex_flags = 0;\n\tret->name=NULL;\n\tM_ASN1_New(ret->cert_info,X509_CINF_new);\n\tM_ASN1_New(ret->sig_alg,X509_ALGOR_new);\n\tM_ASN1_New(ret->signature,M_ASN1_BIT_STRING_new);\n\tCRYPTO_new_ex_data(x509_meth, (char *)ret, &ret->ex_data);\n\treturn(ret);\n\tM_ASN1_New_Error(ASN1_F_X509_NEW);\n\t}']