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


crypto/asn1/x_crl.c:259:1: start of procedure X509_CRL_INFO_new()
257.   	}
258.   
259. > X509_CRL_INFO *X509_CRL_INFO_new(void)
260.   	{
261.   	X509_CRL_INFO *ret=NULL;

crypto/asn1/x_crl.c:261:2: 
259.   X509_CRL_INFO *X509_CRL_INFO_new(void)
260.   	{
261. > 	X509_CRL_INFO *ret=NULL;
262.   	ASN1_CTX c;
263.   

crypto/asn1/x_crl.c:264:2: Taking false branch
262.   	ASN1_CTX c;
263.   
264.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
        ^
265.   	ret->version=NULL;
266.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);

crypto/asn1/x_crl.c:265:2: 
263.   
264.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
265. > 	ret->version=NULL;
266.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
267.   	M_ASN1_New(ret->issuer,X509_NAME_new);

crypto/asn1/x_crl.c:266:2: 
264.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
265.   	ret->version=NULL;
266. > 	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
267.   	M_ASN1_New(ret->issuer,X509_NAME_new);
268.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);

crypto/asn1/x_algor.c:102:1: start of procedure X509_ALGOR_new()
  100.   	}
  101.   
  102. > X509_ALGOR *X509_ALGOR_new(void)
  103.   	{
  104.   	X509_ALGOR *ret=NULL;

crypto/asn1/x_algor.c:104:2: 
  102.   X509_ALGOR *X509_ALGOR_new(void)
  103.   	{
  104. > 	X509_ALGOR *ret=NULL;
  105.   	ASN1_CTX c;
  106.   

crypto/asn1/x_algor.c:107:2: Taking false branch
  105.   	ASN1_CTX c;
  106.   
  107.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
          ^
  108.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  109.   	ret->parameter=NULL;

crypto/asn1/x_algor.c:108:2: 
  106.   
  107.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
  108. > 	ret->algorithm=OBJ_nid2obj(NID_undef);
  109.   	ret->parameter=NULL;
  110.   	return(ret);

crypto/objects/obj_dat.c:265:1: start of procedure OBJ_nid2obj()
    263.   	}
    264.   
    265. > ASN1_OBJECT *OBJ_nid2obj(int n)
    266.   	{
    267.   	ADDED_OBJ ad,*adp;

crypto/objects/obj_dat.c:270:7: Taking true branch
    268.   	ASN1_OBJECT ob;
    269.   
    270.   	if ((n >= 0) && (n < NUM_NID))
                 ^
    271.   		{
    272.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))

crypto/objects/obj_dat.c:270:19: Taking true branch
    268.   	ASN1_OBJECT ob;
    269.   
    270.   	if ((n >= 0) && (n < NUM_NID))
                             ^
    271.   		{
    272.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))

crypto/objects/obj_dat.c:272:8: Taking false branch
    270.   	if ((n >= 0) && (n < NUM_NID))
    271.   		{
    272.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))
                  ^
    273.   			{
    274.   			OBJerr(OBJ_F_OBJ_NID2OBJ,OBJ_R_UNKNOWN_NID);

crypto/objects/obj_dat.c:277:3: 
    275.   			return(NULL);
    276.   			}
    277. > 		return((ASN1_OBJECT *)&(nid_objs[n]));
    278.   		}
    279.   	else if (added == NULL)

crypto/objects/obj_dat.c:295:2: return from a call to OBJ_nid2obj
    293.   			}
    294.   		}
    295.   	}
            ^
    296.   
    297.   const char *OBJ_nid2sn(int n)

crypto/asn1/x_algor.c:109:2: 
  107.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
  108.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  109. > 	ret->parameter=NULL;
  110.   	return(ret);
  111.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);

crypto/asn1/x_algor.c:110:2: 
  108.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  109.   	ret->parameter=NULL;
  110. > 	return(ret);
  111.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);
  112.   	}

crypto/asn1/x_algor.c:112:2: return from a call to X509_ALGOR_new
  110.   	return(ret);
  111.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);
  112.   	}
          ^
  113.   
  114.   void X509_ALGOR_free(X509_ALGOR *a)

crypto/asn1/x_crl.c:266:2: Taking false branch
264.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
265.   	ret->version=NULL;
266.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
        ^
267.   	M_ASN1_New(ret->issuer,X509_NAME_new);
268.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);

crypto/asn1/x_crl.c:267:2: Taking true branch
265.   	ret->version=NULL;
266.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
267.   	M_ASN1_New(ret->issuer,X509_NAME_new);
        ^
268.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);
269.   	ret->nextUpdate=NULL;
