crypto/err/err.c:759: error: MEMORY_LEAK
  memory dynamically allocated by call to `CRYPTO_malloc()` at line 744, column 11 is not reachable after line 759, column 17.
Showing all 38 steps of the trace


crypto/err/err.c:738:1: start of procedure ERR_add_error_vdata()
736.   }
737.   
738. > void ERR_add_error_vdata(int num, va_list args)
739.   {
740.       int i, n, s;

crypto/err/err.c:743:5: 
741.       char *str, *p, *a;
742.   
743. >     s = 80;
744.       str = OPENSSL_malloc(s + 1);
745.       if (str == NULL)

crypto/err/err.c:744:5: 
742.   
743.       s = 80;
744. >     str = OPENSSL_malloc(s + 1);
745.       if (str == NULL)
746.           return;

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:9: Taking true branch
  202.   
  203.       FAILTEST();
  204.       if (allow_customize) {
                 ^
  205.           /*
  206.            * Disallow customization after the first allocation. We only set this

crypto/mem.c:210:9: 
  208.            * allocation.
  209.            */
  210. >         allow_customize = 0;
  211.       }
  212.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG

crypto/mem.c:221:5: 
  219.       }
  220.   #else
  221. >     (void)(file); (void)(line);
  222.       ret = malloc(num);
  223.   #endif

crypto/mem.c:221:19: 
  219.       }
  220.   #else
  221. >     (void)(file); (void)(line);
  222.       ret = malloc(num);
  223.   #endif

crypto/mem.c:222:5: 
  220.   #else
  221.       (void)(file); (void)(line);
  222. >     ret = malloc(num);
  223.   #endif
  224.   

crypto/mem.c:225:5: 
  223.   #endif
  224.   
  225. >     return ret;
  226.   }
  227.   

crypto/mem.c:226:1: return from a call to CRYPTO_malloc
  224.   
  225.       return ret;
  226. > }
  227.   
  228.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/err/err.c:745:9: Taking false branch
743.       s = 80;
744.       str = OPENSSL_malloc(s + 1);
745.       if (str == NULL)
               ^
746.           return;
747.       str[0] = '\0';

crypto/err/err.c:747:5: 
745.       if (str == NULL)
746.           return;
747. >     str[0] = '\0';
748.   
749.       n = 0;

crypto/err/err.c:749:5: 
747.       str[0] = '\0';
748.   
749. >     n = 0;
750.       for (i = 0; i < num; i++) {
751.           a = va_arg(args, char *);

crypto/err/err.c:750:10: 
748.   
749.       n = 0;
750. >     for (i = 0; i < num; i++) {
751.           a = va_arg(args, char *);
752.           if (a == NULL)

crypto/err/err.c:750:17: Loop condition is true. Entering loop body
748.   
749.       n = 0;
750.       for (i = 0; i < num; i++) {
                       ^
751.           a = va_arg(args, char *);
752.           if (a == NULL)

crypto/err/err.c:751:9: 
749.       n = 0;
750.       for (i = 0; i < num; i++) {
751. >         a = va_arg(args, char *);
752.           if (a == NULL)
753.               a = "<NULL>";

crypto/err/err.c:752:13: Taking false branch
750.       for (i = 0; i < num; i++) {
751.           a = va_arg(args, char *);
752.           if (a == NULL)
                   ^
753.               a = "<NULL>";
754.           n += strlen(a);

crypto/err/err.c:754:9: 
752.           if (a == NULL)
753.               a = "<NULL>";
754. >         n += strlen(a);
755.           if (n > s) {
756.               s = n + 20;

crypto/err/err.c:755:13: Taking true branch
753.               a = "<NULL>";
754.           n += strlen(a);
755.           if (n > s) {
                   ^
756.               s = n + 20;
757.               p = OPENSSL_realloc(str, s + 1);

crypto/err/err.c:756:13: 
754.           n += strlen(a);
755.           if (n > s) {
756. >             s = n + 20;
757.               p = OPENSSL_realloc(str, s + 1);
758.               if (p == NULL) {

crypto/err/err.c:757:13: 
755.           if (n > s) {
756.               s = n + 20;
757. >             p = OPENSSL_realloc(str, s + 1);
758.               if (p == NULL) {
759.                   OPENSSL_free(str);

crypto/mem.c:238:1: start of procedure CRYPTO_realloc()
  236.   }
  237.   
  238. > void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
  239.   {
  240.       INCREMENT(realloc_count);

crypto/mem.c:241:9: Taking true branch
  239.   {
  240.       INCREMENT(realloc_count);
  241.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                 ^
  242.           return realloc_impl(str, num, file, line);
  243.   

crypto/mem.c:241:33: Taking true branch
  239.   {
  240.       INCREMENT(realloc_count);
  241.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                                         ^
  242.           return realloc_impl(str, num, file, line);
  243.   

crypto/mem.c:242:9: Skipping __function_pointer__(): unresolved function pointer
  240.       INCREMENT(realloc_count);
  241.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
  242.           return realloc_impl(str, num, file, line);
                 ^
  243.   
  244.       FAILTEST();

crypto/mem.c:266:1: return from a call to CRYPTO_realloc
  264.       return realloc(str, num);
  265.   
  266. > }
  267.   
  268.   void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,

crypto/err/err.c:758:17: Taking true branch
756.               s = n + 20;
757.               p = OPENSSL_realloc(str, s + 1);
758.               if (p == NULL) {
                       ^
759.                   OPENSSL_free(str);
760.                   return;

crypto/err/err.c:759:17: 
757.               p = OPENSSL_realloc(str, s + 1);
758.               if (p == NULL) {
759. >                 OPENSSL_free(str);
760.                   return;
761.               }

crypto/mem.c:295:1: start of procedure CRYPTO_free()
  293.   }
  294.   
  295. > void CRYPTO_free(void *str, const char *file, int line)
  296.   {
  297.       INCREMENT(free_count);

crypto/mem.c:298:9: Taking true branch
  296.   {
  297.       INCREMENT(free_count);
  298.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                 ^
  299.           free_impl(str, file, line);
  300.           return;

crypto/mem.c:298:30: Taking true branch
  296.   {
  297.       INCREMENT(free_count);
  298.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                                      ^
  299.           free_impl(str, file, line);
  300.           return;

crypto/mem.c:299:9: Skipping __function_pointer__(): unresolved function pointer
  297.       INCREMENT(free_count);
  298.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  299.           free_impl(str, file, line);
                 ^
  300.           return;
  301.       }

crypto/mem.c:300:9: 
  298.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  299.           free_impl(str, file, line);
  300. >         return;
  301.       }
  302.   

crypto/mem.c:314:1: return from a call to CRYPTO_free
  312.       free(str);
  313.   #endif
  314. > }
  315.   
  316.   void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)
