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


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

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

crypto/err/err.c:741:5: 
739.   
740.       s = 80;
741. >     str = OPENSSL_malloc(s + 1);
742.       if (str == NULL)
743.           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:742:9: Taking false branch
740.       s = 80;
741.       str = OPENSSL_malloc(s + 1);
742.       if (str == NULL)
               ^
743.           return;
744.       str[0] = '\0';

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

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

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

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

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

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

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

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

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

crypto/err/err.c:754:13: 
752.           if (n > s) {
753.               s = n + 20;
754. >             p = OPENSSL_realloc(str, s + 1);
755.               if (p == NULL) {
756.                   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:755:17: Taking true branch
753.               s = n + 20;
754.               p = OPENSSL_realloc(str, s + 1);
755.               if (p == NULL) {
                       ^
756.                   OPENSSL_free(str);
757.                   return;

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

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)
