apps/x509.c:1018: error: MEMORY_LEAK
  memory dynamically allocated by call to `X509_STORE_CTX_new()` at line 967, column 11 is not reachable after line 1018, column 5.
Showing all 108 steps of the trace


apps/x509.c:948:1: start of procedure x509_certify()
946.   }
947.   
948. > static int x509_certify(X509_STORE *ctx, const char *CAfile, const EVP_MD *digest,
949.                           X509 *x, X509 *xca, EVP_PKEY *pkey,
950.                           STACK_OF(OPENSSL_STRING) *sigopts,

apps/x509.c:955:5: 
953.                           ASN1_INTEGER *sno, int reqfile, int preserve_dates)
954.   {
955. >     int ret = 0;
956.       ASN1_INTEGER *bs = NULL;
957.       X509_STORE_CTX *xsc = NULL;

apps/x509.c:956:5: 
954.   {
955.       int ret = 0;
956. >     ASN1_INTEGER *bs = NULL;
957.       X509_STORE_CTX *xsc = NULL;
958.       EVP_PKEY *upkey;

apps/x509.c:957:5: 
955.       int ret = 0;
956.       ASN1_INTEGER *bs = NULL;
957. >     X509_STORE_CTX *xsc = NULL;
958.       EVP_PKEY *upkey;
959.   

apps/x509.c:960:5: 
958.       EVP_PKEY *upkey;
959.   
960. >     upkey = X509_get0_pubkey(xca);
961.       if (upkey == NULL) {
962.           BIO_printf(bio_err, "Error obtaining CA X509 public key\n");

crypto/x509/x509_cmp.c:264:1: start of procedure X509_get0_pubkey()
  262.   }
  263.   
  264. > EVP_PKEY *X509_get0_pubkey(const X509 *x)
  265.   {
  266.       if (x == NULL)

crypto/x509/x509_cmp.c:266:9: Taking false branch
  264.   EVP_PKEY *X509_get0_pubkey(const X509 *x)
  265.   {
  266.       if (x == NULL)
                 ^
  267.           return NULL;
  268.       return X509_PUBKEY_get0(x->cert_info.key);

crypto/x509/x509_cmp.c:268:5: 
  266.       if (x == NULL)
  267.           return NULL;
  268. >     return X509_PUBKEY_get0(x->cert_info.key);
  269.   }
  270.   

crypto/x509/x_pubkey.c:140:1: start of procedure X509_PUBKEY_get0()
    138.   }
    139.   
    140. > EVP_PKEY *X509_PUBKEY_get0(X509_PUBKEY *key)
    141.   {
    142.       EVP_PKEY *ret = NULL;

crypto/x509/x_pubkey.c:142:5: 
    140.   EVP_PKEY *X509_PUBKEY_get0(X509_PUBKEY *key)
    141.   {
    142. >     EVP_PKEY *ret = NULL;
    143.   
    144.       if (key == NULL || key->public_key == NULL)

crypto/x509/x_pubkey.c:144:9: Taking false branch
    142.       EVP_PKEY *ret = NULL;
    143.   
    144.       if (key == NULL || key->public_key == NULL)
                   ^
    145.           return NULL;
    146.   

crypto/x509/x_pubkey.c:144:24: Taking false branch
    142.       EVP_PKEY *ret = NULL;
    143.   
    144.       if (key == NULL || key->public_key == NULL)
                                  ^
    145.           return NULL;
    146.   

crypto/x509/x_pubkey.c:147:9: Taking true branch
    145.           return NULL;
    146.   
    147.       if (key->pkey != NULL)
                   ^
    148.           return key->pkey;
    149.   

crypto/x509/x_pubkey.c:148:9: 
    146.   
    147.       if (key->pkey != NULL)
    148. >         return key->pkey;
    149.   
    150.       /*

crypto/x509/x_pubkey.c:166:1: return from a call to X509_PUBKEY_get0
    164.   
    165.       return NULL;
    166. > }
    167.   
    168.   EVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key)

crypto/x509/x509_cmp.c:269:1: return from a call to X509_get0_pubkey
  267.           return NULL;
  268.       return X509_PUBKEY_get0(x->cert_info.key);
  269. > }
  270.   
  271.   EVP_PKEY *X509_get_pubkey(X509 *x)

apps/x509.c:961:9: Taking false branch
959.   
960.       upkey = X509_get0_pubkey(xca);
961.       if (upkey == NULL) {
               ^
962.           BIO_printf(bio_err, "Error obtaining CA X509 public key\n");
963.           goto end;

apps/x509.c:965:5: 
963.           goto end;
964.       }
965. >     EVP_PKEY_copy_parameters(upkey, pkey);
966.   
967.       xsc = X509_STORE_CTX_new();

crypto/evp/p_lib.c:74:1: start of procedure EVP_PKEY_copy_parameters()
  72.   }
  73.   
  74. > int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
  75.   {
  76.       if (to->type == EVP_PKEY_NONE) {

crypto/evp/p_lib.c:76:9: Taking false branch
  74.   int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
  75.   {
  76.       if (to->type == EVP_PKEY_NONE) {
                ^
  77.           if (EVP_PKEY_set_type(to, from->type) == 0)
  78.               return 0;

crypto/evp/p_lib.c:79:16: Taking true branch
  77.           if (EVP_PKEY_set_type(to, from->type) == 0)
  78.               return 0;
  79.       } else if (to->type != from->type) {
                       ^
  80.           EVPerr(EVP_F_EVP_PKEY_COPY_PARAMETERS, EVP_R_DIFFERENT_KEY_TYPES);
  81.           goto err;

crypto/evp/p_lib.c:80:9: Skipping ERR_put_error(): empty list of specs
  78.               return 0;
  79.       } else if (to->type != from->type) {
  80.           EVPerr(EVP_F_EVP_PKEY_COPY_PARAMETERS, EVP_R_DIFFERENT_KEY_TYPES);
                ^
  81.           goto err;
  82.       }

crypto/evp/p_lib.c:98:2: 
  96.       if (from->ameth && from->ameth->param_copy)
  97.           return from->ameth->param_copy(to, from);
  98. >  err:
  99.       return 0;
  100.   }

crypto/evp/p_lib.c:99:5: 
  97.           return from->ameth->param_copy(to, from);
  98.    err:
  99. >     return 0;
  100.   }
  101.   

crypto/evp/p_lib.c:100:1: return from a call to EVP_PKEY_copy_parameters
  98.    err:
  99.       return 0;
  100. > }
  101.   
  102.   int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey)

apps/x509.c:967:5: 
965.       EVP_PKEY_copy_parameters(upkey, pkey);
966.   
967. >     xsc = X509_STORE_CTX_new();
968.       if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, x, NULL)) {
969.           BIO_printf(bio_err, "Error initialising X509 store\n");

crypto/x509/x509_vfy.c:2151:1: start of procedure X509_STORE_CTX_new()
  2149.   }
  2150.   
  2151. > X509_STORE_CTX *X509_STORE_CTX_new(void)
  2152.   {
  2153.       X509_STORE_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));

crypto/x509/x509_vfy.c:2153:5: 
  2151.   X509_STORE_CTX *X509_STORE_CTX_new(void)
  2152.   {
  2153. >     X509_STORE_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));
  2154.   
  2155.       if (ctx == NULL) {

crypto/mem.c:221:1: start of procedure CRYPTO_zalloc()
    219.   }
    220.   
    221. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
    222.   {
    223.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:223:5: 
    221.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
    222.   {
    223. >     void *ret = CRYPTO_malloc(num, file, line);
    224.   
    225.       FAILTEST();

crypto/mem.c:192:1: start of procedure CRYPTO_malloc()
      190.   #endif
      191.   
      192. > void *CRYPTO_malloc(size_t num, const char *file, int line)
      193.   {
      194.       void *ret = NULL;

crypto/mem.c:194:5: 
      192.   void *CRYPTO_malloc(size_t num, const char *file, int line)
      193.   {
      194. >     void *ret = NULL;
      195.   
      196.       INCREMENT(malloc_count);

crypto/mem.c:197:9: Taking false branch
      195.   
      196.       INCREMENT(malloc_count);
      197.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                     ^
      198.           return malloc_impl(num, file, line);
      199.   

crypto/mem.c:200:9: Taking false branch
      198.           return malloc_impl(num, file, line);
      199.   
      200.       if (num == 0)
                     ^
      201.           return NULL;
      202.   

crypto/mem.c:204:5: 
      202.   
      203.       FAILTEST();
      204. >     allow_customize = 0;
      205.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
      206.       if (call_malloc_debug) {

crypto/mem.c:214:5: 
      212.       }
      213.   #else
      214. >     (void)(file); (void)(line);
      215.       ret = malloc(num);
      216.   #endif

crypto/mem.c:214:19: 
      212.       }
      213.   #else
      214. >     (void)(file); (void)(line);
      215.       ret = malloc(num);
      216.   #endif

crypto/mem.c:215:5: 
      213.   #else
      214.       (void)(file); (void)(line);
      215. >     ret = malloc(num);
      216.   #endif
      217.   

crypto/mem.c:218:5: 
      216.   #endif
      217.   
      218. >     return ret;
      219.   }
      220.   

crypto/mem.c:219:1: return from a call to CRYPTO_malloc
      217.   
      218.       return ret;
      219. > }
      220.   
      221.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:226:9: Taking true branch
    224.   
    225.       FAILTEST();
    226.       if (ret != NULL)
                   ^
    227.           memset(ret, 0, num);
    228.       return ret;

crypto/mem.c:227:9: 
    225.       FAILTEST();
    226.       if (ret != NULL)
    227. >         memset(ret, 0, num);
    228.       return ret;
    229.   }

crypto/mem.c:228:5: 
    226.       if (ret != NULL)
    227.           memset(ret, 0, num);
    228. >     return ret;
    229.   }
    230.   

crypto/mem.c:229:1: return from a call to CRYPTO_zalloc
    227.           memset(ret, 0, num);
    228.       return ret;
    229. > }
    230.   
    231.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

crypto/x509/x509_vfy.c:2155:9: Taking false branch
  2153.       X509_STORE_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));
  2154.   
  2155.       if (ctx == NULL) {
                  ^
  2156.           X509err(X509_F_X509_STORE_CTX_NEW, ERR_R_MALLOC_FAILURE);
  2157.           return NULL;

crypto/x509/x509_vfy.c:2159:5: 
  2157.           return NULL;
  2158.       }
  2159. >     return ctx;
  2160.   }
  2161.   

crypto/x509/x509_vfy.c:2160:1: return from a call to X509_STORE_CTX_new
  2158.       }
  2159.       return ctx;
  2160. > }
  2161.   
  2162.   void X509_STORE_CTX_free(X509_STORE_CTX *ctx)

apps/x509.c:968:9: Taking false branch
966.   
967.       xsc = X509_STORE_CTX_new();
968.       if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, x, NULL)) {
               ^
969.           BIO_printf(bio_err, "Error initialising X509 store\n");
970.           goto end;

apps/x509.c:968:25: Taking false branch
966.   
967.       xsc = X509_STORE_CTX_new();
968.       if (xsc == NULL || !X509_STORE_CTX_init(xsc, ctx, x, NULL)) {
                               ^
969.           BIO_printf(bio_err, "Error initialising X509 store\n");
970.           goto end;

apps/x509.c:972:9: Taking true branch
970.           goto end;
971.       }
972.       if (sno)
               ^
973.           bs = sno;
974.       else if ((bs = x509_load_serial(CAfile, serialfile, create)) == NULL)

apps/x509.c:973:9: 
971.       }
972.       if (sno)
973. >         bs = sno;
974.       else if ((bs = x509_load_serial(CAfile, serialfile, create)) == NULL)
975.           goto end;

apps/x509.c:981:5: 
979.        * certificate request in which case it is not.
980.        */
981. >     X509_STORE_CTX_set_cert(xsc, x);
982.       X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
983.       if (!reqfile && X509_verify_cert(xsc) <= 0)

crypto/x509/x509_vfy.c:2060:1: start of procedure X509_STORE_CTX_set_cert()
  2058.   }
  2059.   
  2060. > void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x)
  2061.   {
  2062.       ctx->cert = x;

crypto/x509/x509_vfy.c:2062:5: 
  2060.   void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x)
  2061.   {
  2062. >     ctx->cert = x;
  2063.   }
  2064.   

crypto/x509/x509_vfy.c:2063:1: return from a call to X509_STORE_CTX_set_cert
  2061.   {
  2062.       ctx->cert = x;
  2063. > }
  2064.   
  2065.   void X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk)

apps/x509.c:982:5: 
980.        */
981.       X509_STORE_CTX_set_cert(xsc, x);
982. >     X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
983.       if (!reqfile && X509_verify_cert(xsc) <= 0)
984.           goto end;

crypto/x509/x509_vfy.c:2351:1: start of procedure X509_STORE_CTX_set_flags()
  2349.   }
  2350.   
  2351. > void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags)
  2352.   {
  2353.       X509_VERIFY_PARAM_set_flags(ctx->param, flags);

crypto/x509/x509_vfy.c:2353:5: 
  2351.   void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags)
  2352.   {
  2353. >     X509_VERIFY_PARAM_set_flags(ctx->param, flags);
  2354.   }
  2355.   

crypto/x509/x509_vpm.c:271:1: start of procedure X509_VERIFY_PARAM_set_flags()
    269.   }
    270.   
    271. > int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, unsigned long flags)
    272.   {
    273.       param->flags |= flags;

crypto/x509/x509_vpm.c:273:5: 
    271.   int X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param, unsigned long flags)
    272.   {
    273. >     param->flags |= flags;
    274.       if (flags & X509_V_FLAG_POLICY_MASK)
    275.           param->flags |= X509_V_FLAG_POLICY_CHECK;

crypto/x509/x509_vpm.c:274:9: Taking false branch
    272.   {
    273.       param->flags |= flags;
    274.       if (flags & X509_V_FLAG_POLICY_MASK)
                   ^
    275.           param->flags |= X509_V_FLAG_POLICY_CHECK;
    276.       return 1;

crypto/x509/x509_vpm.c:276:5: 
    274.       if (flags & X509_V_FLAG_POLICY_MASK)
    275.           param->flags |= X509_V_FLAG_POLICY_CHECK;
    276. >     return 1;
    277.   }
    278.   

crypto/x509/x509_vpm.c:277:1: return from a call to X509_VERIFY_PARAM_set_flags
    275.           param->flags |= X509_V_FLAG_POLICY_CHECK;
    276.       return 1;
    277. > }
    278.   
    279.   int X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param,

crypto/x509/x509_vfy.c:2354:1: return from a call to X509_STORE_CTX_set_flags
  2352.   {
  2353.       X509_VERIFY_PARAM_set_flags(ctx->param, flags);
  2354. > }
  2355.   
  2356.   void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,

apps/x509.c:983:10: Taking true branch
981.       X509_STORE_CTX_set_cert(xsc, x);
982.       X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
983.       if (!reqfile && X509_verify_cert(xsc) <= 0)
                ^
984.           goto end;
985.   

apps/x509.c:983:21: 
981.       X509_STORE_CTX_set_cert(xsc, x);
982.       X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
983. >     if (!reqfile && X509_verify_cert(xsc) <= 0)
984.           goto end;
985.   

crypto/x509/x509_vfy.c:253:1: start of procedure X509_verify_cert()
  251.   }
  252.   
  253. > int X509_verify_cert(X509_STORE_CTX *ctx)
  254.   {
  255.       SSL_DANE *dane = ctx->dane;

crypto/x509/x509_vfy.c:255:5: 
  253.   int X509_verify_cert(X509_STORE_CTX *ctx)
  254.   {
  255. >     SSL_DANE *dane = ctx->dane;
  256.       int ret;
  257.   

crypto/x509/x509_vfy.c:258:9: Taking false branch
  256.       int ret;
  257.   
  258.       if (ctx->cert == NULL) {
                 ^
  259.           X509err(X509_F_X509_VERIFY_CERT, X509_R_NO_CERT_SET_FOR_US_TO_VERIFY);
  260.           ctx->error = X509_V_ERR_INVALID_CALL;

crypto/x509/x509_vfy.c:264:9: Taking false branch
  262.       }
  263.   
  264.       if (ctx->chain != NULL) {
                 ^
  265.           /*
  266.            * This X509_STORE_CTX has already been used to verify a cert. We

crypto/x509/x509_vfy.c:278:10: 
  276.        * the first entry is in place
  277.        */
  278. >     if (((ctx->chain = sk_X509_new_null()) == NULL) ||
  279.           (!sk_X509_push(ctx->chain, ctx->cert))) {
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);

include/openssl/x509.h:99:1: start of procedure sk_X509_new_null()
    97.   typedef struct x509_cinf_st X509_CINF;
    98.   
    99. > DEFINE_STACK_OF(X509)
    100.   
    101.   /* This is used for a table of trust checking functions */

crypto/stack/stack.c:112:1: start of procedure OPENSSL_sk_new_null()
      110.   }
      111.   
      112. > OPENSSL_STACK *OPENSSL_sk_new_null(void)
      113.   {
      114.       return OPENSSL_sk_new_reserve(NULL, 0);

crypto/stack/stack.c:114:5: Skipping OPENSSL_sk_new_reserve(): empty list of specs
      112.   OPENSSL_STACK *OPENSSL_sk_new_null(void)
      113.   {
      114.       return OPENSSL_sk_new_reserve(NULL, 0);
                 ^
      115.   }
      116.   

crypto/stack/stack.c:115:1: return from a call to OPENSSL_sk_new_null
      113.   {
      114.       return OPENSSL_sk_new_reserve(NULL, 0);
      115. > }
      116.   
      117.   OPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc c)

include/openssl/x509.h:99:1: return from a call to sk_X509_new_null
    97.   typedef struct x509_cinf_st X509_CINF;
    98.   
    99. > DEFINE_STACK_OF(X509)
    100.   
    101.   /* This is used for a table of trust checking functions */

crypto/x509/x509_vfy.c:278:10: Taking false branch
  276.        * the first entry is in place
  277.        */
  278.       if (((ctx->chain = sk_X509_new_null()) == NULL) ||
                  ^
  279.           (!sk_X509_push(ctx->chain, ctx->cert))) {
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);

crypto/x509/x509_vfy.c:279:11: 
  277.        */
  278.       if (((ctx->chain = sk_X509_new_null()) == NULL) ||
  279. >         (!sk_X509_push(ctx->chain, ctx->cert))) {
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
  281.           ctx->error = X509_V_ERR_OUT_OF_MEM;

include/openssl/x509.h:99:1: start of procedure sk_X509_push()
    97.   typedef struct x509_cinf_st X509_CINF;
    98.   
    99. > DEFINE_STACK_OF(X509)
    100.   
    101.   /* This is used for a table of trust checking functions */

crypto/stack/stack.c:321:1: start of procedure OPENSSL_sk_push()
      319.   }
      320.   
      321. > int OPENSSL_sk_push(OPENSSL_STACK *st, const void *data)
      322.   {
      323.       if (st == NULL)

crypto/stack/stack.c:323:9: Taking false branch
      321.   int OPENSSL_sk_push(OPENSSL_STACK *st, const void *data)
      322.   {
      323.       if (st == NULL)
                     ^
      324.           return -1;
      325.       return OPENSSL_sk_insert(st, data, st->num);

crypto/stack/stack.c:325:5: 
      323.       if (st == NULL)
      324.           return -1;
      325. >     return OPENSSL_sk_insert(st, data, st->num);
      326.   }
      327.   

crypto/stack/stack.c:232:1: start of procedure OPENSSL_sk_insert()
        230.   }
        231.   
        232. > int OPENSSL_sk_insert(OPENSSL_STACK *st, const void *data, int loc)
        233.   {
        234.       if (st == NULL || st->num == max_nodes)

crypto/stack/stack.c:234:9: Taking false branch
        232.   int OPENSSL_sk_insert(OPENSSL_STACK *st, const void *data, int loc)
        233.   {
        234.       if (st == NULL || st->num == max_nodes)
                       ^
        235.           return 0;
        236.   

crypto/stack/stack.c:234:23: Taking true branch
        232.   int OPENSSL_sk_insert(OPENSSL_STACK *st, const void *data, int loc)
        233.   {
        234.       if (st == NULL || st->num == max_nodes)
                                     ^
        235.           return 0;
        236.   

crypto/stack/stack.c:235:9: 
        233.   {
        234.       if (st == NULL || st->num == max_nodes)
        235. >         return 0;
        236.   
        237.       if (!sk_reserve(st, 1, 0))

crypto/stack/stack.c:250:1: return from a call to OPENSSL_sk_insert
        248.       st->sorted = 0;
        249.       return st->num;
        250. > }
        251.   
        252.   static ossl_inline void *internal_delete(OPENSSL_STACK *st, int loc)

crypto/stack/stack.c:326:1: return from a call to OPENSSL_sk_push
      324.           return -1;
      325.       return OPENSSL_sk_insert(st, data, st->num);
      326. > }
      327.   
      328.   int OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data)

include/openssl/x509.h:99:1: return from a call to sk_X509_push
    97.   typedef struct x509_cinf_st X509_CINF;
    98.   
    99. > DEFINE_STACK_OF(X509)
    100.   
    101.   /* This is used for a table of trust checking functions */

crypto/x509/x509_vfy.c:279:11: Taking true branch
  277.        */
  278.       if (((ctx->chain = sk_X509_new_null()) == NULL) ||
  279.           (!sk_X509_push(ctx->chain, ctx->cert))) {
                   ^
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
  281.           ctx->error = X509_V_ERR_OUT_OF_MEM;

crypto/x509/x509_vfy.c:280:9: Skipping ERR_put_error(): empty list of specs
  278.       if (((ctx->chain = sk_X509_new_null()) == NULL) ||
  279.           (!sk_X509_push(ctx->chain, ctx->cert))) {
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
                 ^
  281.           ctx->error = X509_V_ERR_OUT_OF_MEM;
  282.           return -1;

crypto/x509/x509_vfy.c:281:9: 
  279.           (!sk_X509_push(ctx->chain, ctx->cert))) {
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
  281. >         ctx->error = X509_V_ERR_OUT_OF_MEM;
  282.           return -1;
  283.       }

crypto/x509/x509_vfy.c:282:9: 
  280.           X509err(X509_F_X509_VERIFY_CERT, ERR_R_MALLOC_FAILURE);
  281.           ctx->error = X509_V_ERR_OUT_OF_MEM;
  282. >         return -1;
  283.       }
  284.       X509_up_ref(ctx->cert);

crypto/x509/x509_vfy.c:305:1: return from a call to X509_verify_cert
  303.           ctx->error = X509_V_ERR_UNSPECIFIED;
  304.       return ret;
  305. > }
  306.   
  307.   /*

apps/x509.c:983:21: Taking true branch
981.       X509_STORE_CTX_set_cert(xsc, x);
982.       X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_CHECK_SS_SIGNATURE);
983.       if (!reqfile && X509_verify_cert(xsc) <= 0)
                           ^
984.           goto end;
985.   

apps/x509.c:1017:2: 
1015.           goto end;
1016.       ret = 1;
1017. >  end:
1018.       X509_STORE_CTX_free(xsc);
1019.       if (!ret)

apps/x509.c:1018:5: 
1016.       ret = 1;
1017.    end:
1018. >     X509_STORE_CTX_free(xsc);
1019.       if (!ret)
1020.           ERR_print_errors(bio_err);

crypto/x509/x509_vfy.c:2162:1: start of procedure X509_STORE_CTX_free()
  2160.   }
  2161.   
  2162. > void X509_STORE_CTX_free(X509_STORE_CTX *ctx)
  2163.   {
  2164.       if (ctx == NULL)

crypto/x509/x509_vfy.c:2164:9: Taking false branch
  2162.   void X509_STORE_CTX_free(X509_STORE_CTX *ctx)
  2163.   {
  2164.       if (ctx == NULL)
                  ^
  2165.           return;
  2166.   

crypto/x509/x509_vfy.c:2167:5: Skipping X509_STORE_CTX_cleanup(): empty list of specs
  2165.           return;
  2166.   
  2167.       X509_STORE_CTX_cleanup(ctx);
              ^
  2168.       OPENSSL_free(ctx);
  2169.   }

crypto/x509/x509_vfy.c:2168:5: 
  2166.   
  2167.       X509_STORE_CTX_cleanup(ctx);
  2168. >     OPENSSL_free(ctx);
  2169.   }
  2170.   

crypto/mem.c:289:1: start of procedure CRYPTO_free()
    287.   }
    288.   
    289. > void CRYPTO_free(void *str, const char *file, int line)
    290.   {
    291.       INCREMENT(free_count);

crypto/mem.c:292:9: Taking true branch
    290.   {
    291.       INCREMENT(free_count);
    292.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                   ^
    293.           free_impl(str, file, line);
    294.           return;

crypto/mem.c:292:30: Taking true branch
    290.   {
    291.       INCREMENT(free_count);
    292.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                                        ^
    293.           free_impl(str, file, line);
    294.           return;

crypto/mem.c:293:9: Skipping __function_pointer__(): unresolved function pointer
    291.       INCREMENT(free_count);
    292.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
    293.           free_impl(str, file, line);
                   ^
    294.           return;
    295.       }

crypto/mem.c:294:9: 
    292.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
    293.           free_impl(str, file, line);
    294. >         return;
    295.       }
    296.   

crypto/mem.c:308:1: return from a call to CRYPTO_free
    306.       free(str);
    307.   #endif
    308. > }
    309.   
    310.   void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)

crypto/x509/x509_vfy.c:2169:1: return from a call to X509_STORE_CTX_free
  2167.       X509_STORE_CTX_cleanup(ctx);
  2168.       OPENSSL_free(ctx);
  2169. > }
  2170.   
  2171.   int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
