crypto/bn/bn_lib.c:498: error: MEMORY_LEAK
  memory dynamically allocated by call to `BN_new()` at line 496, column 4 is not reachable after line 498, column 2.
Showing all 14 steps of the trace


crypto/bn/bn_lib.c:488:1: start of procedure BN_dup()
486.   	}
487.   
488. > BIGNUM *BN_dup(const BIGNUM *a)
489.   	{
490.   	BIGNUM *r;

crypto/bn/bn_lib.c:492:6: Taking false branch
490.   	BIGNUM *r;
491.   
492.   	if (a == NULL) return NULL;
            ^
493.   
494.   	bn_check_top(a);

crypto/bn/bn_lib.c:496:2: 
494.   	bn_check_top(a);
495.   
496. > 	r=BN_new();
497.   	if (r == NULL) return(NULL);
498.   	return((BIGNUM *)BN_copy(r,a));

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/bn/bn_lib.c:497:6: Taking false branch
495.   
496.   	r=BN_new();
497.   	if (r == NULL) return(NULL);
            ^
498.   	return((BIGNUM *)BN_copy(r,a));
499.   	}

crypto/bn/bn_lib.c:498:2: Skipping BN_copy(): empty list of specs
496.   	r=BN_new();
497.   	if (r == NULL) return(NULL);
498.   	return((BIGNUM *)BN_copy(r,a));
        ^
499.   	}
500.   
