crypto/x509v3/v3_utl.c:155: error: MEMORY_LEAK
  memory dynamically allocated by call to `BN_new()` at line 150, column 7 is not reachable after line 155, column 6.
Showing all 14 steps of the trace


crypto/x509v3/v3_utl.c:146:1: start of procedure s2i_ASN1_INTEGER()
144.   }
145.   
146. > ASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, char *value)
147.   {
148.   	BIGNUM *bn = NULL;

crypto/x509v3/v3_utl.c:148:2: 
146.   ASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *method, char *value)
147.   {
148. > 	BIGNUM *bn = NULL;
149.   	ASN1_INTEGER *aint;
150.   	bn = BN_new();

crypto/x509v3/v3_utl.c:150:2: 
148.   	BIGNUM *bn = NULL;
149.   	ASN1_INTEGER *aint;
150. > 	bn = BN_new();
151.   	if(!value) {
152.   		X509V3err(X509V3_F_S2I_ASN1_INTEGER,X509V3_R_INVALID_NULL_VALUE);

crypto/bn/bn_lib.c:290:1: start of procedure BN_new()
  288.   	}
  289.   
  290. > BIGNUM *BN_new(void)
  291.   	{
  292.   	BIGNUM *ret;

crypto/bn/bn_lib.c:294:6: Taking false branch
  292.   	BIGNUM *ret;
  293.   
  294.   	if ((ret=(BIGNUM *)Malloc(sizeof(BIGNUM))) == NULL)
              ^
  295.   		{
  296.   		BNerr(BN_F_BN_NEW,ERR_R_MALLOC_FAILURE);

crypto/bn/bn_lib.c:299:2: 
  297.   		return(NULL);
  298.   		}
  299. > 	ret->flags=BN_FLG_MALLOCED;
  300.   	ret->top=0;
  301.   	ret->neg=0;

crypto/bn/bn_lib.c:300:2: 
  298.   		}
  299.   	ret->flags=BN_FLG_MALLOCED;
  300. > 	ret->top=0;
  301.   	ret->neg=0;
  302.   	ret->max=0;

crypto/bn/bn_lib.c:301:2: 
  299.   	ret->flags=BN_FLG_MALLOCED;
  300.   	ret->top=0;
  301. > 	ret->neg=0;
  302.   	ret->max=0;
  303.   	ret->d=NULL;

crypto/bn/bn_lib.c:302:2: 
  300.   	ret->top=0;
  301.   	ret->neg=0;
  302. > 	ret->max=0;
  303.   	ret->d=NULL;
  304.   	return(ret);

crypto/bn/bn_lib.c:303:2: 
  301.   	ret->neg=0;
  302.   	ret->max=0;
  303. > 	ret->d=NULL;
  304.   	return(ret);
  305.   	}

crypto/bn/bn_lib.c:304:2: 
  302.   	ret->max=0;
  303.   	ret->d=NULL;
  304. > 	return(ret);
  305.   	}
  306.   

crypto/bn/bn_lib.c:305:2: return from a call to BN_new
  303.   	ret->d=NULL;
  304.   	return(ret);
  305.   	}
          ^
  306.   
  307.   

crypto/x509v3/v3_utl.c:151:6: Taking false branch
149.   	ASN1_INTEGER *aint;
150.   	bn = BN_new();
151.   	if(!value) {
            ^
152.   		X509V3err(X509V3_F_S2I_ASN1_INTEGER,X509V3_R_INVALID_NULL_VALUE);
153.   		return 0;

crypto/x509v3/v3_utl.c:155:6: Skipping BN_dec2bn(): empty list of specs
153.   		return 0;
154.   	}
155.   	if(!BN_dec2bn(&bn, value)) {
            ^
156.   		X509V3err(X509V3_F_S2I_ASN1_INTEGER,X509V3_R_BN_DEC2BN_ERROR);
157.   		return 0;
