crypto/hmac/hmac.c:178: error: MEMORY_LEAK
  memory dynamically allocated by call to `CRYPTO_zalloc()` at line 174, column 21 is not reachable after line 178, column 13.
Showing all 21 steps of the trace


crypto/hmac/hmac.c:172:1: start of procedure HMAC_CTX_new()
170.   }
171.   
172. > HMAC_CTX *HMAC_CTX_new(void)
173.   {
174.       HMAC_CTX *ctx = OPENSSL_zalloc(sizeof(HMAC_CTX));

crypto/hmac/hmac.c:174:5: 
172.   HMAC_CTX *HMAC_CTX_new(void)
173.   {
174. >     HMAC_CTX *ctx = OPENSSL_zalloc(sizeof(HMAC_CTX));
175.   
176.       if (ctx != NULL) {

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

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

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

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

crypto/mem.c:123:9: Taking false branch
    121.       void *ret = NULL;
    122.   
    123.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                   ^
    124.           return malloc_impl(num, file, line);
    125.   

crypto/mem.c:126:9: Taking false branch
    124.           return malloc_impl(num, file, line);
    125.   
    126.       if (num <= 0)
                   ^
    127.           return NULL;
    128.   

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

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

crypto/mem.c:139:24: 
    137.       }
    138.   #else
    139. >     osslargused(file); osslargused(line);
    140.       ret = malloc(num);
    141.   #endif

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

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

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

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

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

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

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

crypto/hmac/hmac.c:176:9: Taking true branch
174.       HMAC_CTX *ctx = OPENSSL_zalloc(sizeof(HMAC_CTX));
175.   
176.       if (ctx != NULL) {
               ^
177.           if (!HMAC_CTX_reset(ctx)) {
178.               HMAC_CTX_free(ctx);

crypto/hmac/hmac.c:177:14: Taking true branch
175.   
176.       if (ctx != NULL) {
177.           if (!HMAC_CTX_reset(ctx)) {
                    ^
178.               HMAC_CTX_free(ctx);
179.               return NULL;

crypto/hmac/hmac.c:178:13: Skipping HMAC_CTX_free(): empty list of specs
176.       if (ctx != NULL) {
177.           if (!HMAC_CTX_reset(ctx)) {
178.               HMAC_CTX_free(ctx);
                   ^
179.               return NULL;
180.           }
