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


crypto/asn1/x_crl.c:252:1: start of procedure X509_CRL_INFO_new()
250.   	}
251.   
252. > X509_CRL_INFO *X509_CRL_INFO_new(void)
253.   	{
254.   	X509_CRL_INFO *ret=NULL;

crypto/asn1/x_crl.c:254:2: 
252.   X509_CRL_INFO *X509_CRL_INFO_new(void)
253.   	{
254. > 	X509_CRL_INFO *ret=NULL;
255.   	ASN1_CTX c;
256.   

crypto/asn1/x_crl.c:257:2: Taking false branch
255.   	ASN1_CTX c;
256.   
257.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
        ^
258.   	ret->version=NULL;
259.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);

crypto/asn1/x_crl.c:258:2: 
256.   
257.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
258. > 	ret->version=NULL;
259.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
260.   	M_ASN1_New(ret->issuer,X509_NAME_new);

crypto/asn1/x_crl.c:259:2: 
257.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
258.   	ret->version=NULL;
259. > 	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
260.   	M_ASN1_New(ret->issuer,X509_NAME_new);
261.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);

crypto/asn1/x_algor.c:97:1: start of procedure X509_ALGOR_new()
  95.   	}
  96.   
  97. > X509_ALGOR *X509_ALGOR_new(void)
  98.   	{
  99.   	X509_ALGOR *ret=NULL;

crypto/asn1/x_algor.c:99:2: 
  97.   X509_ALGOR *X509_ALGOR_new(void)
  98.   	{
  99. > 	X509_ALGOR *ret=NULL;
  100.   	ASN1_CTX c;
  101.   

crypto/asn1/x_algor.c:102:2: Taking false branch
  100.   	ASN1_CTX c;
  101.   
  102.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
          ^
  103.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  104.   	ret->parameter=NULL;

crypto/asn1/x_algor.c:103:2: 
  101.   
  102.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
  103. > 	ret->algorithm=OBJ_nid2obj(NID_undef);
  104.   	ret->parameter=NULL;
  105.   	return(ret);

crypto/objects/obj_dat.c:258:1: start of procedure OBJ_nid2obj()
    256.   	}
    257.   
    258. > ASN1_OBJECT *OBJ_nid2obj(int n)
    259.   	{
    260.   	ADDED_OBJ ad,*adp;

crypto/objects/obj_dat.c:263:7: Taking true branch
    261.   	ASN1_OBJECT ob;
    262.   
    263.   	if ((n >= 0) && (n < NUM_NID))
                 ^
    264.   		{
    265.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))

crypto/objects/obj_dat.c:263:19: Taking true branch
    261.   	ASN1_OBJECT ob;
    262.   
    263.   	if ((n >= 0) && (n < NUM_NID))
                             ^
    264.   		{
    265.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))

crypto/objects/obj_dat.c:265:8: Taking false branch
    263.   	if ((n >= 0) && (n < NUM_NID))
    264.   		{
    265.   		if ((n != NID_undef) && (nid_objs[n].nid == NID_undef))
                  ^
    266.   			{
    267.   			OBJerr(OBJ_F_OBJ_NID2OBJ,OBJ_R_UNKNOWN_NID);

crypto/objects/obj_dat.c:270:3: 
    268.   			return(NULL);
    269.   			}
    270. > 		return((ASN1_OBJECT *)&(nid_objs[n]));
    271.   		}
    272.   	else if (added == NULL)

crypto/objects/obj_dat.c:288:2: return from a call to OBJ_nid2obj
    286.   			}
    287.   		}
    288.   	}
            ^
    289.   
    290.   const char *OBJ_nid2sn(int n)

crypto/asn1/x_algor.c:104:2: 
  102.   	M_ASN1_New_Malloc(ret,X509_ALGOR);
  103.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  104. > 	ret->parameter=NULL;
  105.   	return(ret);
  106.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);

crypto/asn1/x_algor.c:105:2: 
  103.   	ret->algorithm=OBJ_nid2obj(NID_undef);
  104.   	ret->parameter=NULL;
  105. > 	return(ret);
  106.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);
  107.   	}

crypto/asn1/x_algor.c:107:2: return from a call to X509_ALGOR_new
  105.   	return(ret);
  106.   	M_ASN1_New_Error(ASN1_F_X509_ALGOR_NEW);
  107.   	}
          ^
  108.   
  109.   void X509_ALGOR_free(X509_ALGOR *a)

crypto/asn1/x_crl.c:259:2: Taking false branch
257.   	M_ASN1_New_Malloc(ret,X509_CRL_INFO);
258.   	ret->version=NULL;
259.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
        ^
260.   	M_ASN1_New(ret->issuer,X509_NAME_new);
261.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);

crypto/asn1/x_crl.c:260:2: Taking true branch
258.   	ret->version=NULL;
259.   	M_ASN1_New(ret->sig_alg,X509_ALGOR_new);
260.   	M_ASN1_New(ret->issuer,X509_NAME_new);
        ^
261.   	M_ASN1_New(ret->lastUpdate,ASN1_UTCTIME_new);
262.   	ret->nextUpdate=NULL;
