test/evp_test.c:1772: error: MEMORY_LEAK
  memory dynamically allocated by call to `CRYPTO_zalloc()` at line 1760, column 26 is not reachable after line 1772, column 9.
Showing all 22 steps of the trace


test/evp_test.c:1758:1: start of procedure encode_test_init()
1756.   } ENCODE_DATA;
1757.   
1758. > static int encode_test_init(EVP_TEST *t, const char *encoding)
1759.   {
1760.       ENCODE_DATA *edata = OPENSSL_zalloc(sizeof(*edata));

test/evp_test.c:1760:5: 
1758.   static int encode_test_init(EVP_TEST *t, const char *encoding)
1759.   {
1760. >     ENCODE_DATA *edata = OPENSSL_zalloc(sizeof(*edata));
1761.   
1762.       if (strcmp(encoding, "canonical") == 0) {

crypto/mem.c:186:1: start of procedure CRYPTO_zalloc()
  184.   }
  185.   
  186. > void *CRYPTO_zalloc(size_t num, const char *file, int line)
  187.   {
  188.       void *ret = CRYPTO_malloc(num, file, line);

crypto/mem.c:188:5: 
  186.   void *CRYPTO_zalloc(size_t num, const char *file, int line)
  187.   {
  188. >     void *ret = CRYPTO_malloc(num, file, line);
  189.   
  190.       FAILTEST();

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

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

crypto/mem.c:162:9: Taking false branch
    160.       void *ret = NULL;
    161.   
    162.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                   ^
    163.           return malloc_impl(num, file, line);
    164.   

crypto/mem.c:165:9: Taking false branch
    163.           return malloc_impl(num, file, line);
    164.   
    165.       if (num == 0)
                   ^
    166.           return NULL;
    167.   

crypto/mem.c:169:5: 
    167.   
    168.       FAILTEST();
    169. >     allow_customize = 0;
    170.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
    171.       if (call_malloc_debug) {

crypto/mem.c:179:5: 
    177.       }
    178.   #else
    179. >     osslargused(file); osslargused(line);
    180.       ret = malloc(num);
    181.   #endif

crypto/mem.c:179:24: 
    177.       }
    178.   #else
    179. >     osslargused(file); osslargused(line);
    180.       ret = malloc(num);
    181.   #endif

crypto/mem.c:180:5: 
    178.   #else
    179.       osslargused(file); osslargused(line);
    180. >     ret = malloc(num);
    181.   #endif
    182.   

crypto/mem.c:183:5: 
    181.   #endif
    182.   
    183. >     return ret;
    184.   }
    185.   

crypto/mem.c:184:1: return from a call to CRYPTO_malloc
    182.   
    183.       return ret;
    184. > }
    185.   
    186.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/mem.c:191:9: Taking true branch
  189.   
  190.       FAILTEST();
  191.       if (ret != NULL)
                 ^
  192.           memset(ret, 0, num);
  193.       return ret;

crypto/mem.c:192:9: 
  190.       FAILTEST();
  191.       if (ret != NULL)
  192. >         memset(ret, 0, num);
  193.       return ret;
  194.   }

crypto/mem.c:193:5: 
  191.       if (ret != NULL)
  192.           memset(ret, 0, num);
  193. >     return ret;
  194.   }
  195.   

crypto/mem.c:194:1: return from a call to CRYPTO_zalloc
  192.           memset(ret, 0, num);
  193.       return ret;
  194. > }
  195.   
  196.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)

test/evp_test.c:1762:9: Taking false branch
1760.       ENCODE_DATA *edata = OPENSSL_zalloc(sizeof(*edata));
1761.   
1762.       if (strcmp(encoding, "canonical") == 0) {
                ^
1763.           edata->encoding = BASE64_CANONICAL_ENCODING;
1764.       } else if (strcmp(encoding, "valid") == 0) {

test/evp_test.c:1764:16: Taking false branch
1762.       if (strcmp(encoding, "canonical") == 0) {
1763.           edata->encoding = BASE64_CANONICAL_ENCODING;
1764.       } else if (strcmp(encoding, "valid") == 0) {
                       ^
1765.           edata->encoding = BASE64_VALID_ENCODING;
1766.       } else if (strcmp(encoding, "invalid") == 0) {

test/evp_test.c:1766:16: Taking false branch
1764.       } else if (strcmp(encoding, "valid") == 0) {
1765.           edata->encoding = BASE64_VALID_ENCODING;
1766.       } else if (strcmp(encoding, "invalid") == 0) {
                       ^
1767.           edata->encoding = BASE64_INVALID_ENCODING;
1768.           t->expected_err = OPENSSL_strdup("DECODE_ERROR");

test/evp_test.c:1772:9: 
1770.               return 0;
1771.       } else {
1772. >         TEST_info("Bad encoding: %s. Should be one of "
1773.                     "{canonical, valid, invalid}", encoding);
1774.           return 0;
