crypto/asn1/x_x509.c:122: error: MEMORY_LEAK
  memory dynamically allocated to `return` by call to `malloc()` at line 116, column 2 is not reachable after line 122, column 2.
Showing all 9 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.   	ret->aux=NULL;

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

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

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