crypto/x509v3/v3_sxnet.c:251: error: MEMORY_LEAK
  memory dynamically allocated by call to `ASN1_STRING_type_new()` at line 246, column 15 is not reachable after line 251, column 2.
Showing all 15 steps of the trace


crypto/x509v3/v3_sxnet.c:242:1: start of procedure SXNET_add_id_ulong()
240.   /* Add an id given the zone as an unsigned long */
241.   
242. > int SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, char *user,
243.   	     int userlen)
244.   {

crypto/x509v3/v3_sxnet.c:245:2: 
243.   	     int userlen)
244.   {
245. > 	ASN1_INTEGER *izone = NULL;
246.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
247.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);

crypto/x509v3/v3_sxnet.c:246:7: 
244.   {
245.   	ASN1_INTEGER *izone = NULL;
246. > 	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
247.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
248.   		ASN1_INTEGER_free(izone);

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:246:7: Taking false branch
244.   {
245.   	ASN1_INTEGER *izone = NULL;
246.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
             ^
247.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
248.   		ASN1_INTEGER_free(izone);

crypto/x509v3/v3_sxnet.c:246:39: Taking false branch
244.   {
245.   	ASN1_INTEGER *izone = NULL;
246.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
                                             ^
247.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
248.   		ASN1_INTEGER_free(izone);

crypto/x509v3/v3_sxnet.c:251:2: Skipping SXNET_add_id_INTEGER(): empty list of specs
249.   		return 0;
250.   	}
251.   	return SXNET_add_id_INTEGER(psx, izone, user, userlen);
        ^
252.   	
253.   }
