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


crypto/x509v3/v3_sxnet.c:254:1: start of procedure SXNET_add_id_ulong()
252.   /* Add an id given the zone as an unsigned long */
253.   
254. > int SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, char *user,
255.   	     int userlen)
256.   {

crypto/x509v3/v3_sxnet.c:257:2: 
255.   	     int userlen)
256.   {
257. > 	ASN1_INTEGER *izone = NULL;
258.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
259.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);

crypto/x509v3/v3_sxnet.c:258:7: 
256.   {
257.   	ASN1_INTEGER *izone = NULL;
258. > 	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
259.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
260.   		ASN1_INTEGER_free(izone);

crypto/asn1/asn1_lib.c:369:1: start of procedure ASN1_STRING_type_new()
  367.   
  368.   
  369. > ASN1_STRING *ASN1_STRING_type_new(int type)
  370.   	{
  371.   	ASN1_STRING *ret;

crypto/asn1/asn1_lib.c:373:2: 
  371.   	ASN1_STRING *ret;
  372.   
  373. > 	ret=(ASN1_STRING *)Malloc(sizeof(ASN1_STRING));
  374.   	if (ret == NULL)
  375.   		{

crypto/asn1/asn1_lib.c:374:6: Taking false branch
  372.   
  373.   	ret=(ASN1_STRING *)Malloc(sizeof(ASN1_STRING));
  374.   	if (ret == NULL)
              ^
  375.   		{
  376.   		ASN1err(ASN1_F_ASN1_STRING_TYPE_NEW,ERR_R_MALLOC_FAILURE);

crypto/asn1/asn1_lib.c:379:2: 
  377.   		return(NULL);
  378.   		}
  379. > 	ret->length=0;
  380.   	ret->type=type;
  381.   	ret->data=NULL;

crypto/asn1/asn1_lib.c:380:2: 
  378.   		}
  379.   	ret->length=0;
  380. > 	ret->type=type;
  381.   	ret->data=NULL;
  382.   	ret->flags=0;

crypto/asn1/asn1_lib.c:381:2: 
  379.   	ret->length=0;
  380.   	ret->type=type;
  381. > 	ret->data=NULL;
  382.   	ret->flags=0;
  383.   	return(ret);

crypto/asn1/asn1_lib.c:382:2: 
  380.   	ret->type=type;
  381.   	ret->data=NULL;
  382. > 	ret->flags=0;
  383.   	return(ret);
  384.   	}

crypto/asn1/asn1_lib.c:383:2: 
  381.   	ret->data=NULL;
  382.   	ret->flags=0;
  383. > 	return(ret);
  384.   	}
  385.   

crypto/asn1/asn1_lib.c:384:2: return from a call to ASN1_STRING_type_new
  382.   	ret->flags=0;
  383.   	return(ret);
  384.   	}
          ^
  385.   
  386.   void ASN1_STRING_free(ASN1_STRING *a)

crypto/x509v3/v3_sxnet.c:258:7: Taking false branch
256.   {
257.   	ASN1_INTEGER *izone = NULL;
258.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
             ^
259.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
260.   		ASN1_INTEGER_free(izone);

crypto/x509v3/v3_sxnet.c:258:39: Taking false branch
256.   {
257.   	ASN1_INTEGER *izone = NULL;
258.   	if(!(izone = ASN1_INTEGER_new()) || !ASN1_INTEGER_set(izone, lzone)) {
                                             ^
259.   		X509V3err(X509V3_F_SXNET_ADD_ID_ULONG,ERR_R_MALLOC_FAILURE);
260.   		ASN1_INTEGER_free(izone);

crypto/x509v3/v3_sxnet.c:263:2: Skipping SXNET_add_id_INTEGER(): empty list of specs
261.   		return 0;
262.   	}
263.   	return SXNET_add_id_INTEGER(psx, izone, user, userlen);
        ^
264.   	
265.   }
