crypto/x509v3/v3_sxnet.c:114: error: MEMORY_LEAK
  memory dynamically allocated to `return` by call to `malloc()` at line 112, column 2 is not reachable after line 114, column 2.
Showing all 23 steps of the trace


crypto/x509v3/v3_sxnet.c:108:1: start of procedure SXNET_new()
106.   }
107.   
108. > SXNET *SXNET_new(void)
109.   {
110.   	SXNET *ret=NULL;

crypto/x509v3/v3_sxnet.c:110:2: 
108.   SXNET *SXNET_new(void)
109.   {
110. > 	SXNET *ret=NULL;
111.   	ASN1_CTX c;
112.   	M_ASN1_New_Malloc(ret, SXNET);

crypto/x509v3/v3_sxnet.c:112:2: Taking false branch
110.   	SXNET *ret=NULL;
111.   	ASN1_CTX c;
112.   	M_ASN1_New_Malloc(ret, SXNET);
        ^
113.   	M_ASN1_New(ret->version,ASN1_INTEGER_new);
114.   	M_ASN1_New(ret->ids,sk_SXNETID_new_null);

crypto/x509v3/v3_sxnet.c:113:2: 
111.   	ASN1_CTX c;
112.   	M_ASN1_New_Malloc(ret, SXNET);
113. > 	M_ASN1_New(ret->version,ASN1_INTEGER_new);
114.   	M_ASN1_New(ret->ids,sk_SXNETID_new_null);
115.   	return (ret);

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/x509v3/v3_sxnet.c:113:2: Taking false branch
111.   	ASN1_CTX c;
112.   	M_ASN1_New_Malloc(ret, SXNET);
113.   	M_ASN1_New(ret->version,ASN1_INTEGER_new);
        ^
114.   	M_ASN1_New(ret->ids,sk_SXNETID_new_null);
115.   	return (ret);

crypto/x509v3/v3_sxnet.c:114:2: 
112.   	M_ASN1_New_Malloc(ret, SXNET);
113.   	M_ASN1_New(ret->version,ASN1_INTEGER_new);
114. > 	M_ASN1_New(ret->ids,sk_SXNETID_new_null);
115.   	return (ret);
116.   	M_ASN1_New_Error(ASN1_F_SXNET_NEW);

crypto/x509v3/v3_sxnet.c:338:1: start of procedure sk_SXNETID_new_null()
  336.   }
  337.   
  338. > IMPLEMENT_STACK_OF(SXNETID)
  339.   IMPLEMENT_ASN1_SET_OF(SXNETID)

crypto/stack/stack.c:112:1: start of procedure sk_new()
    110.   	}
    111.   
    112. > STACK *sk_new(int (*c)())
    113.   	{
    114.   	STACK *ret;

crypto/stack/stack.c:117:6: Taking true branch
    115.   	int i;
    116.   
    117.   	if ((ret=(STACK *)Malloc(sizeof(STACK))) == NULL)
                ^
    118.   		goto err0;
    119.   	if ((ret->data=(char **)Malloc(sizeof(char *)*MIN_NODES)) == NULL)

crypto/stack/stack.c:130:1: 
    128.   err1:
    129.   	Free((char *)ret);
    130. > err0:
    131.   	return(NULL);
    132.   	}

crypto/stack/stack.c:131:2: 
    129.   	Free((char *)ret);
    130.   err0:
    131. > 	return(NULL);
    132.   	}
    133.   

crypto/stack/stack.c:132:2: return from a call to sk_new
    130.   err0:
    131.   	return(NULL);
    132.   	}
            ^
    133.   
    134.   int sk_insert(STACK *st, char *data, int loc)

crypto/x509v3/v3_sxnet.c:338:1: return from a call to sk_SXNETID_new_null
  336.   }
  337.   
  338. > IMPLEMENT_STACK_OF(SXNETID)
  339.   IMPLEMENT_ASN1_SET_OF(SXNETID)

crypto/x509v3/v3_sxnet.c:114:2: Taking true branch
112.   	M_ASN1_New_Malloc(ret, SXNET);
113.   	M_ASN1_New(ret->version,ASN1_INTEGER_new);
114.   	M_ASN1_New(ret->ids,sk_SXNETID_new_null);
        ^
115.   	return (ret);
116.   	M_ASN1_New_Error(ASN1_F_SXNET_NEW);
