crypto/dsa/dsa_key.c:115: error: MEMORY_LEAK
  memory dynamically allocated by call to `BN_new()` at line 106, column 31 is not reachable after line 115, column 13.
Showing all 120 steps of the trace


crypto/dsa/dsa_key.c:75:1: start of procedure dsa_builtin_keygen()
73.   }
74.   
75. > static int dsa_builtin_keygen(DSA *dsa)
76.   {
77.       int ok = 0;

crypto/dsa/dsa_key.c:77:5: 
75.   static int dsa_builtin_keygen(DSA *dsa)
76.   {
77. >     int ok = 0;
78.       BN_CTX *ctx = NULL;
79.       BIGNUM *pub_key = NULL, *priv_key = NULL;

crypto/dsa/dsa_key.c:78:5: 
76.   {
77.       int ok = 0;
78. >     BN_CTX *ctx = NULL;
79.       BIGNUM *pub_key = NULL, *priv_key = NULL;
80.   

crypto/dsa/dsa_key.c:79:5: 
77.       int ok = 0;
78.       BN_CTX *ctx = NULL;
79. >     BIGNUM *pub_key = NULL, *priv_key = NULL;
80.   
81.       if ((ctx = BN_CTX_new()) == NULL)

crypto/dsa/dsa_key.c:81:9: 
79.       BIGNUM *pub_key = NULL, *priv_key = NULL;
80.   
81. >     if ((ctx = BN_CTX_new()) == NULL)
82.           goto err;
83.   

crypto/bn/bn_ctx.c:189:1: start of procedure BN_CTX_new()
  187.   
  188.   
  189. > BN_CTX *BN_CTX_new(void)
  190.   {
  191.       BN_CTX *ret;

crypto/bn/bn_ctx.c:193:9: 
  191.       BN_CTX *ret;
  192.   
  193. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  194.           BNerr(BN_F_BN_CTX_NEW, ERR_R_MALLOC_FAILURE);
  195.           return NULL;

crypto/mem.c:157:1: start of procedure CRYPTO_zalloc()
    155.   }
    156.   
    157. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:159:5: 
    157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159. >     void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)

crypto/mem.c:120:1: start of procedure CRYPTO_malloc()
      118.   }
      119.   
      120. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122.       void *ret = NULL;

crypto/mem.c:122:5: 
      120.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122. >     void *ret = NULL;
      123.   
      124.       if (num <= 0)

crypto/mem.c:124:9: Taking false branch
      122.       void *ret = NULL;
      123.   
      124.       if (num <= 0)
                     ^
      125.           return NULL;
      126.   

crypto/mem.c:127:5: 
      125.           return NULL;
      126.   
      127. >     allow_customize = 0;
      128.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      129.       if (call_malloc_debug) {

crypto/mem.c:137:5: 
      135.       }
      136.   #else
      137. >     (void)file;
      138.       (void)line;
      139.       ret = malloc(num);

crypto/mem.c:138:5: 
      136.   #else
      137.       (void)file;
      138. >     (void)line;
      139.       ret = malloc(num);
      140.   #endif

crypto/mem.c:139:5: 
      137.       (void)file;
      138.       (void)line;
      139. >     ret = malloc(num);
      140.   #endif
      141.   

crypto/mem.c:154:5: 
      152.   #endif
      153.   
      154. >     return ret;
      155.   }
      156.   

crypto/mem.c:155:1: return from a call to CRYPTO_malloc
      153.   
      154.       return ret;
      155. > }
      156.   
      157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:161:9: Taking true branch
    159.       void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)
                   ^
    162.           memset(ret, 0, num);
    163.       return ret;

crypto/mem.c:162:9: 
    160.   
    161.       if (ret != NULL)
    162. >         memset(ret, 0, num);
    163.       return ret;
    164.   }

crypto/mem.c:163:5: 
    161.       if (ret != NULL)
    162.           memset(ret, 0, num);
    163. >     return ret;
    164.   }
    165.   

crypto/mem.c:164:1: return from a call to CRYPTO_zalloc
    162.           memset(ret, 0, num);
    163.       return ret;
    164. > }
    165.   
    166.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_ctx.c:193:9: Taking false branch
  191.       BN_CTX *ret;
  192.   
  193.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  194.           BNerr(BN_F_BN_CTX_NEW, ERR_R_MALLOC_FAILURE);
  195.           return NULL;

crypto/bn/bn_ctx.c:198:5: 
  196.       }
  197.       /* Initialise the structure */
  198. >     BN_POOL_init(&ret->pool);
  199.       BN_STACK_init(&ret->stack);
  200.       return ret;

crypto/bn/bn_ctx.c:335:1: start of procedure BN_POOL_init()
    333.   /***********/
    334.   
    335. > static void BN_POOL_init(BN_POOL *p)
    336.   {
    337.       p->head = p->current = p->tail = NULL;

crypto/bn/bn_ctx.c:337:5: 
    335.   static void BN_POOL_init(BN_POOL *p)
    336.   {
    337. >     p->head = p->current = p->tail = NULL;
    338.       p->used = p->size = 0;
    339.   }

crypto/bn/bn_ctx.c:338:5: 
    336.   {
    337.       p->head = p->current = p->tail = NULL;
    338. >     p->used = p->size = 0;
    339.   }
    340.   

crypto/bn/bn_ctx.c:339:1: return from a call to BN_POOL_init
    337.       p->head = p->current = p->tail = NULL;
    338.       p->used = p->size = 0;
    339. > }
    340.   
    341.   static void BN_POOL_finish(BN_POOL *p)

crypto/bn/bn_ctx.c:199:5: 
  197.       /* Initialise the structure */
  198.       BN_POOL_init(&ret->pool);
  199. >     BN_STACK_init(&ret->stack);
  200.       return ret;
  201.   }

crypto/bn/bn_ctx.c:294:1: start of procedure BN_STACK_init()
    292.   /************/
    293.   
    294. > static void BN_STACK_init(BN_STACK *st)
    295.   {
    296.       st->indexes = NULL;

crypto/bn/bn_ctx.c:296:5: 
    294.   static void BN_STACK_init(BN_STACK *st)
    295.   {
    296. >     st->indexes = NULL;
    297.       st->depth = st->size = 0;
    298.   }

crypto/bn/bn_ctx.c:297:5: 
    295.   {
    296.       st->indexes = NULL;
    297. >     st->depth = st->size = 0;
    298.   }
    299.   

crypto/bn/bn_ctx.c:298:1: return from a call to BN_STACK_init
    296.       st->indexes = NULL;
    297.       st->depth = st->size = 0;
    298. > }
    299.   
    300.   static void BN_STACK_finish(BN_STACK *st)

crypto/bn/bn_ctx.c:200:5: 
  198.       BN_POOL_init(&ret->pool);
  199.       BN_STACK_init(&ret->stack);
  200. >     return ret;
  201.   }
  202.   

crypto/bn/bn_ctx.c:201:1: return from a call to BN_CTX_new
  199.       BN_STACK_init(&ret->stack);
  200.       return ret;
  201. > }
  202.   
  203.   BN_CTX *BN_CTX_secure_new(void)

crypto/dsa/dsa_key.c:81:9: Taking false branch
79.       BIGNUM *pub_key = NULL, *priv_key = NULL;
80.   
81.       if ((ctx = BN_CTX_new()) == NULL)
              ^
82.           goto err;
83.   

crypto/dsa/dsa_key.c:84:9: Taking false branch
82.           goto err;
83.   
84.       if (dsa->priv_key == NULL) {
              ^
85.           if ((priv_key = BN_secure_new()) == NULL)
86.               goto err;

crypto/dsa/dsa_key.c:88:9: 
86.               goto err;
87.       } else
88. >         priv_key = dsa->priv_key;
89.   
90.       do

crypto/dsa/dsa_key.c:91:14: 
89.   
90.       do
91. >         if (!BN_rand_range(priv_key, dsa->q))
92.               goto err;
93.       while (BN_is_zero(priv_key)) ;

crypto/bn/bn_rand.c:281:1: start of procedure BN_rand_range()
  279.   }
  280.   
  281. > int BN_rand_range(BIGNUM *r, const BIGNUM *range)
  282.   {
  283.       return bn_rand_range(0, r, range);

crypto/bn/bn_rand.c:283:5: Skipping bn_rand_range(): empty list of specs
  281.   int BN_rand_range(BIGNUM *r, const BIGNUM *range)
  282.   {
  283.       return bn_rand_range(0, r, range);
             ^
  284.   }
  285.   

crypto/bn/bn_rand.c:284:1: return from a call to BN_rand_range
  282.   {
  283.       return bn_rand_range(0, r, range);
  284. > }
  285.   
  286.   int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range)

crypto/dsa/dsa_key.c:91:14: Taking false branch
89.   
90.       do
91.           if (!BN_rand_range(priv_key, dsa->q))
                   ^
92.               goto err;
93.       while (BN_is_zero(priv_key)) ;

crypto/dsa/dsa_key.c:93:12: 
91.           if (!BN_rand_range(priv_key, dsa->q))
92.               goto err;
93. >     while (BN_is_zero(priv_key)) ;
94.   
95.       if (dsa->pub_key == NULL) {

crypto/bn/bn_lib.c:899:1: start of procedure BN_is_zero()
  897.   }
  898.   
  899. > int BN_is_zero(const BIGNUM *a)
  900.   {
  901.       return a->top == 0;

crypto/bn/bn_lib.c:901:12: Condition is false
  899.   int BN_is_zero(const BIGNUM *a)
  900.   {
  901.       return a->top == 0;
                    ^
  902.   }
  903.   

crypto/bn/bn_lib.c:901:5: 
  899.   int BN_is_zero(const BIGNUM *a)
  900.   {
  901. >     return a->top == 0;
  902.   }
  903.   

crypto/bn/bn_lib.c:902:1: return from a call to BN_is_zero
  900.   {
  901.       return a->top == 0;
  902. > }
  903.   
  904.   int BN_is_one(const BIGNUM *a)

crypto/dsa/dsa_key.c:93:12: Loop condition is false. Leaving loop
91.           if (!BN_rand_range(priv_key, dsa->q))
92.               goto err;
93.       while (BN_is_zero(priv_key)) ;
                 ^
94.   
95.       if (dsa->pub_key == NULL) {

crypto/dsa/dsa_key.c:95:9: Taking true branch
93.       while (BN_is_zero(priv_key)) ;
94.   
95.       if (dsa->pub_key == NULL) {
              ^
96.           if ((pub_key = BN_new()) == NULL)
97.               goto err;

crypto/dsa/dsa_key.c:96:13: 
94.   
95.       if (dsa->pub_key == NULL) {
96. >         if ((pub_key = BN_new()) == NULL)
97.               goto err;
98.       } else

crypto/bn/bn_lib.c:277:1: start of procedure BN_new()
  275.   }
  276.   
  277. > BIGNUM *BN_new(void)
  278.   {
  279.       BIGNUM *ret;

crypto/bn/bn_lib.c:281:9: 
  279.       BIGNUM *ret;
  280.   
  281. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  282.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  283.           return (NULL);

crypto/mem.c:157:1: start of procedure CRYPTO_zalloc()
    155.   }
    156.   
    157. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:159:5: 
    157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159. >     void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)

crypto/mem.c:120:1: start of procedure CRYPTO_malloc()
      118.   }
      119.   
      120. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122.       void *ret = NULL;

crypto/mem.c:122:5: 
      120.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122. >     void *ret = NULL;
      123.   
      124.       if (num <= 0)

crypto/mem.c:124:9: Taking false branch
      122.       void *ret = NULL;
      123.   
      124.       if (num <= 0)
                     ^
      125.           return NULL;
      126.   

crypto/mem.c:127:5: 
      125.           return NULL;
      126.   
      127. >     allow_customize = 0;
      128.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      129.       if (call_malloc_debug) {

crypto/mem.c:137:5: 
      135.       }
      136.   #else
      137. >     (void)file;
      138.       (void)line;
      139.       ret = malloc(num);

crypto/mem.c:138:5: 
      136.   #else
      137.       (void)file;
      138. >     (void)line;
      139.       ret = malloc(num);
      140.   #endif

crypto/mem.c:139:5: 
      137.       (void)file;
      138.       (void)line;
      139. >     ret = malloc(num);
      140.   #endif
      141.   

crypto/mem.c:154:5: 
      152.   #endif
      153.   
      154. >     return ret;
      155.   }
      156.   

crypto/mem.c:155:1: return from a call to CRYPTO_malloc
      153.   
      154.       return ret;
      155. > }
      156.   
      157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:161:9: Taking true branch
    159.       void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)
                   ^
    162.           memset(ret, 0, num);
    163.       return ret;

crypto/mem.c:162:9: 
    160.   
    161.       if (ret != NULL)
    162. >         memset(ret, 0, num);
    163.       return ret;
    164.   }

crypto/mem.c:163:5: 
    161.       if (ret != NULL)
    162.           memset(ret, 0, num);
    163. >     return ret;
    164.   }
    165.   

crypto/mem.c:164:1: return from a call to CRYPTO_zalloc
    162.           memset(ret, 0, num);
    163.       return ret;
    164. > }
    165.   
    166.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:281:9: Taking false branch
  279.       BIGNUM *ret;
  280.   
  281.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  282.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  283.           return (NULL);

crypto/bn/bn_lib.c:285:5: 
  283.           return (NULL);
  284.       }
  285. >     ret->flags = BN_FLG_MALLOCED;
  286.       bn_check_top(ret);
  287.       return (ret);

crypto/bn/bn_lib.c:287:5: 
  285.       ret->flags = BN_FLG_MALLOCED;
  286.       bn_check_top(ret);
  287. >     return (ret);
  288.   }
  289.   

crypto/bn/bn_lib.c:288:1: return from a call to BN_new
  286.       bn_check_top(ret);
  287.       return (ret);
  288. > }
  289.   
  290.    BIGNUM *BN_secure_new(void)

crypto/dsa/dsa_key.c:96:13: Taking false branch
94.   
95.       if (dsa->pub_key == NULL) {
96.           if ((pub_key = BN_new()) == NULL)
                  ^
97.               goto err;
98.       } else

crypto/dsa/dsa_key.c:102:9: 
100.   
101.       {
102. >         BIGNUM *local_prk = NULL;
103.           BIGNUM *prk;
104.   

crypto/dsa/dsa_key.c:105:13: Taking true branch
103.           BIGNUM *prk;
104.   
105.           if ((dsa->flags & DSA_FLAG_NO_EXP_CONSTTIME) == 0) {
                   ^
106.               local_prk = prk = BN_new();
107.               if (local_prk == NULL)

crypto/dsa/dsa_key.c:106:13: 
104.   
105.           if ((dsa->flags & DSA_FLAG_NO_EXP_CONSTTIME) == 0) {
106. >             local_prk = prk = BN_new();
107.               if (local_prk == NULL)
108.                   goto err;

crypto/bn/bn_lib.c:277:1: start of procedure BN_new()
  275.   }
  276.   
  277. > BIGNUM *BN_new(void)
  278.   {
  279.       BIGNUM *ret;

crypto/bn/bn_lib.c:281:9: 
  279.       BIGNUM *ret;
  280.   
  281. >     if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
  282.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  283.           return (NULL);

crypto/mem.c:157:1: start of procedure CRYPTO_zalloc()
    155.   }
    156.   
    157. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:159:5: 
    157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    158.   {
    159. >     void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)

crypto/mem.c:120:1: start of procedure CRYPTO_malloc()
      118.   }
      119.   
      120. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122.       void *ret = NULL;

crypto/mem.c:122:5: 
      120.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      121.   {
      122. >     void *ret = NULL;
      123.   
      124.       if (num <= 0)

crypto/mem.c:124:9: Taking false branch
      122.       void *ret = NULL;
      123.   
      124.       if (num <= 0)
                     ^
      125.           return NULL;
      126.   

crypto/mem.c:127:5: 
      125.           return NULL;
      126.   
      127. >     allow_customize = 0;
      128.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      129.       if (call_malloc_debug) {

crypto/mem.c:137:5: 
      135.       }
      136.   #else
      137. >     (void)file;
      138.       (void)line;
      139.       ret = malloc(num);

crypto/mem.c:138:5: 
      136.   #else
      137.       (void)file;
      138. >     (void)line;
      139.       ret = malloc(num);
      140.   #endif

crypto/mem.c:139:5: 
      137.       (void)file;
      138.       (void)line;
      139. >     ret = malloc(num);
      140.   #endif
      141.   

crypto/mem.c:154:5: 
      152.   #endif
      153.   
      154. >     return ret;
      155.   }
      156.   

crypto/mem.c:155:1: return from a call to CRYPTO_malloc
      153.   
      154.       return ret;
      155. > }
      156.   
      157.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:161:9: Taking true branch
    159.       void *ret = CRYPTO_malloc(num, file, line);
    160.   
    161.       if (ret != NULL)
                   ^
    162.           memset(ret, 0, num);
    163.       return ret;

crypto/mem.c:162:9: 
    160.   
    161.       if (ret != NULL)
    162. >         memset(ret, 0, num);
    163.       return ret;
    164.   }

crypto/mem.c:163:5: 
    161.       if (ret != NULL)
    162.           memset(ret, 0, num);
    163. >     return ret;
    164.   }
    165.   

crypto/mem.c:164:1: return from a call to CRYPTO_zalloc
    162.           memset(ret, 0, num);
    163.       return ret;
    164. > }
    165.   
    166.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/bn/bn_lib.c:281:9: Taking false branch
  279.       BIGNUM *ret;
  280.   
  281.       if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) {
                 ^
  282.           BNerr(BN_F_BN_NEW, ERR_R_MALLOC_FAILURE);
  283.           return (NULL);

crypto/bn/bn_lib.c:285:5: 
  283.           return (NULL);
  284.       }
  285. >     ret->flags = BN_FLG_MALLOCED;
  286.       bn_check_top(ret);
  287.       return (ret);

crypto/bn/bn_lib.c:287:5: 
  285.       ret->flags = BN_FLG_MALLOCED;
  286.       bn_check_top(ret);
  287. >     return (ret);
  288.   }
  289.   

crypto/bn/bn_lib.c:288:1: return from a call to BN_new
  286.       bn_check_top(ret);
  287.       return (ret);
  288. > }
  289.   
  290.    BIGNUM *BN_secure_new(void)

crypto/dsa/dsa_key.c:107:17: Taking false branch
105.           if ((dsa->flags & DSA_FLAG_NO_EXP_CONSTTIME) == 0) {
106.               local_prk = prk = BN_new();
107.               if (local_prk == NULL)
                       ^
108.                   goto err;
109.               BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);

crypto/dsa/dsa_key.c:109:13: 
107.               if (local_prk == NULL)
108.                   goto err;
109. >             BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
110.           } else {
111.               prk = priv_key;

crypto/bn/bn_lib.c:930:1: start of procedure BN_with_flags()
  928.   }
  929.   
  930. > void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  931.   {
  932.       dest->d = b->d;

crypto/bn/bn_lib.c:932:5: 
  930.   void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags)
  931.   {
  932. >     dest->d = b->d;
  933.       dest->top = b->top;
  934.       dest->dmax = b->dmax;

crypto/bn/bn_lib.c:933:5: 
  931.   {
  932.       dest->d = b->d;
  933. >     dest->top = b->top;
  934.       dest->dmax = b->dmax;
  935.       dest->neg = b->neg;

crypto/bn/bn_lib.c:934:5: 
  932.       dest->d = b->d;
  933.       dest->top = b->top;
  934. >     dest->dmax = b->dmax;
  935.       dest->neg = b->neg;
  936.       dest->flags = ((dest->flags & BN_FLG_MALLOCED)

crypto/bn/bn_lib.c:935:5: 
  933.       dest->top = b->top;
  934.       dest->dmax = b->dmax;
  935. >     dest->neg = b->neg;
  936.       dest->flags = ((dest->flags & BN_FLG_MALLOCED)
  937.                      | (b->flags & ~BN_FLG_MALLOCED)

crypto/bn/bn_lib.c:936:5: 
  934.       dest->dmax = b->dmax;
  935.       dest->neg = b->neg;
  936. >     dest->flags = ((dest->flags & BN_FLG_MALLOCED)
  937.                      | (b->flags & ~BN_FLG_MALLOCED)
  938.                      | BN_FLG_STATIC_DATA | flags);

crypto/bn/bn_lib.c:939:1: return from a call to BN_with_flags
  937.                      | (b->flags & ~BN_FLG_MALLOCED)
  938.                      | BN_FLG_STATIC_DATA | flags);
  939. > }
  940.   
  941.   BN_GENCB *BN_GENCB_new(void)

crypto/dsa/dsa_key.c:114:14: Taking true branch
112.           }
113.   
114.           if (!BN_mod_exp(pub_key, dsa->g, prk, dsa->p, ctx)) {
                    ^
115.               BN_free(local_prk);
116.               goto err;

crypto/dsa/dsa_key.c:115:13: 
113.   
114.           if (!BN_mod_exp(pub_key, dsa->g, prk, dsa->p, ctx)) {
115. >             BN_free(local_prk);
116.               goto err;
117.           }

crypto/bn/bn_lib.c:252:1: start of procedure BN_free()
  250.   }
  251.   
  252. > void BN_free(BIGNUM *a)
  253.   {
  254.       if (a == NULL)

crypto/bn/bn_lib.c:254:9: Taking false branch
  252.   void BN_free(BIGNUM *a)
  253.   {
  254.       if (a == NULL)
                 ^
  255.           return;
  256.       bn_check_top(a);

crypto/bn/bn_lib.c:257:10: 
  255.           return;
  256.       bn_check_top(a);
  257. >     if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
  258.           bn_free_d(a);
  259.       if (a->flags & BN_FLG_MALLOCED)

crypto/bn/bn_lib.c:965:1: start of procedure BN_get_flags()
    963.   }
    964.   
    965. > int BN_get_flags(const BIGNUM *b, int n)
    966.   {
    967.       return b->flags & n;

crypto/bn/bn_lib.c:967:5: 
    965.   int BN_get_flags(const BIGNUM *b, int n)
    966.   {
    967. >     return b->flags & n;
    968.   }
    969.   

crypto/bn/bn_lib.c:968:1: return from a call to BN_get_flags
    966.   {
    967.       return b->flags & n;
    968. > }
    969.   
    970.   /* Populate a BN_GENCB structure with an "old"-style callback */

crypto/bn/bn_lib.c:257:10: Taking false branch
  255.           return;
  256.       bn_check_top(a);
  257.       if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
                  ^
  258.           bn_free_d(a);
  259.       if (a->flags & BN_FLG_MALLOCED)

crypto/bn/bn_lib.c:259:9: Taking false branch
  257.       if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
  258.           bn_free_d(a);
  259.       if (a->flags & BN_FLG_MALLOCED)
                 ^
  260.           OPENSSL_free(a);
  261.       else {

crypto/bn/bn_lib.c:263:9: 
  261.       else {
  262.   #if OPENSSL_API_COMPAT < 0x00908000L
  263. >         a->flags |= BN_FLG_FREE;
  264.   #endif
  265.           a->d = NULL;

crypto/bn/bn_lib.c:265:9: 
  263.           a->flags |= BN_FLG_FREE;
  264.   #endif
  265. >         a->d = NULL;
  266.       }
  267.   }

crypto/bn/bn_lib.c:259:5: 
  257.       if (!BN_get_flags(a, BN_FLG_STATIC_DATA))
  258.           bn_free_d(a);
  259. >     if (a->flags & BN_FLG_MALLOCED)
  260.           OPENSSL_free(a);
  261.       else {

crypto/bn/bn_lib.c:267:1: return from a call to BN_free
  265.           a->d = NULL;
  266.       }
  267. > }
  268.   
  269.   void bn_init(BIGNUM *a)
