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


crypto/err/err.c:745:1: start of procedure ERR_add_error_vdata()
743.   }
744.   
745. > void ERR_add_error_vdata(int num, va_list args)
746.   {
747.       int i, n, s;

crypto/err/err.c:750:5: 
748.       char *str, *p, *a;
749.   
750. >     s = 80;
751.       str = OPENSSL_malloc(s + 1);
752.       if (str == NULL)

crypto/err/err.c:751:5: 
749.   
750.       s = 80;
751. >     str = OPENSSL_malloc(s + 1);
752.       if (str == NULL)
753.           return;

crypto/mem.c:166:1: start of procedure CRYPTO_malloc()
  164.   #endif
  165.   
  166. > void *CRYPTO_malloc(size_t num, const char *file, int line)
  167.   {
  168.       void *ret = NULL;

crypto/mem.c:168:5: 
  166.   void *CRYPTO_malloc(size_t num, const char *file, int line)
  167.   {
  168. >     void *ret = NULL;
  169.   
  170.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)

crypto/mem.c:170:9: Taking false branch
  168.       void *ret = NULL;
  169.   
  170.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                 ^
  171.           return malloc_impl(num, file, line);
  172.   

crypto/mem.c:173:9: Taking false branch
  171.           return malloc_impl(num, file, line);
  172.   
  173.       if (num == 0)
                 ^
  174.           return NULL;
  175.   

crypto/mem.c:177:5: 
  175.   
  176.       FAILTEST();
  177. >     allow_customize = 0;
  178.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
  179.       if (call_malloc_debug) {

crypto/mem.c:187:5: 
  185.       }
  186.   #else
  187. >     osslargused(file); osslargused(line);
  188.       ret = malloc(num);
  189.   #endif

crypto/mem.c:187:24: 
  185.       }
  186.   #else
  187. >     osslargused(file); osslargused(line);
  188.       ret = malloc(num);
  189.   #endif

crypto/mem.c:188:5: 
  186.   #else
  187.       osslargused(file); osslargused(line);
  188. >     ret = malloc(num);
  189.   #endif
  190.   

crypto/mem.c:191:5: 
  189.   #endif
  190.   
  191. >     return ret;
  192.   }
  193.   

crypto/mem.c:192:1: return from a call to CRYPTO_malloc
  190.   
  191.       return ret;
  192. > }
  193.   
  194.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

crypto/err/err.c:752:9: Taking false branch
750.       s = 80;
751.       str = OPENSSL_malloc(s + 1);
752.       if (str == NULL)
               ^
753.           return;
754.       str[0] = '\0';

crypto/err/err.c:754:5: 
752.       if (str == NULL)
753.           return;
754. >     str[0] = '\0';
755.   
756.       n = 0;

crypto/err/err.c:756:5: 
754.       str[0] = '\0';
755.   
756. >     n = 0;
757.       for (i = 0; i < num; i++) {
758.           a = va_arg(args, char *);

crypto/err/err.c:757:10: 
755.   
756.       n = 0;
757. >     for (i = 0; i < num; i++) {
758.           a = va_arg(args, char *);
759.           /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */

crypto/err/err.c:757:17: Loop condition is true. Entering loop body
755.   
756.       n = 0;
757.       for (i = 0; i < num; i++) {
                       ^
758.           a = va_arg(args, char *);
759.           /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */

crypto/err/err.c:758:9: 
756.       n = 0;
757.       for (i = 0; i < num; i++) {
758. >         a = va_arg(args, char *);
759.           /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */
760.           if (a != NULL) {

crypto/err/err.c:760:13: Taking true branch
758.           a = va_arg(args, char *);
759.           /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */
760.           if (a != NULL) {
                   ^
761.               n += strlen(a);
762.               if (n > s) {

crypto/err/err.c:761:13: 
759.           /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */
760.           if (a != NULL) {
761. >             n += strlen(a);
762.               if (n > s) {
763.                   s = n + 20;

crypto/err/err.c:762:17: Taking true branch
760.           if (a != NULL) {
761.               n += strlen(a);
762.               if (n > s) {
                       ^
763.                   s = n + 20;
764.                   p = OPENSSL_realloc(str, s + 1);

crypto/err/err.c:763:17: 
761.               n += strlen(a);
762.               if (n > s) {
763. >                 s = n + 20;
764.                   p = OPENSSL_realloc(str, s + 1);
765.                   if (p == NULL) {

crypto/err/err.c:764:17: 
762.               if (n > s) {
763.                   s = n + 20;
764. >                 p = OPENSSL_realloc(str, s + 1);
765.                   if (p == NULL) {
766.                       OPENSSL_free(str);

crypto/mem.c:204:1: start of procedure CRYPTO_realloc()
  202.   }
  203.   
  204. > void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
  205.   {
  206.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)

crypto/mem.c:206:9: Taking true branch
  204.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
  205.   {
  206.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                 ^
  207.           return realloc_impl(str, num, file, line);
  208.   

crypto/mem.c:206:33: Taking true branch
  204.   void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
  205.   {
  206.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                                         ^
  207.           return realloc_impl(str, num, file, line);
  208.   

crypto/mem.c:207:9: Skipping __function_pointer__(): unresolved function pointer
  205.   {
  206.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
  207.           return realloc_impl(str, num, file, line);
                 ^
  208.   
  209.       FAILTEST();

crypto/mem.c:232:1: return from a call to CRYPTO_realloc
  230.       return realloc(str, num);
  231.   
  232. > }
  233.   
  234.   void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,

crypto/err/err.c:765:21: Taking true branch
763.                   s = n + 20;
764.                   p = OPENSSL_realloc(str, s + 1);
765.                   if (p == NULL) {
                           ^
766.                       OPENSSL_free(str);
767.                       return;

crypto/err/err.c:766:21: 
764.                   p = OPENSSL_realloc(str, s + 1);
765.                   if (p == NULL) {
766. >                     OPENSSL_free(str);
767.                       return;
768.                   }

crypto/mem.c:261:1: start of procedure CRYPTO_free()
  259.   }
  260.   
  261. > void CRYPTO_free(void *str, const char *file, int line)
  262.   {
  263.       if (free_impl != NULL && free_impl != &CRYPTO_free) {

crypto/mem.c:263:9: Taking true branch
  261.   void CRYPTO_free(void *str, const char *file, int line)
  262.   {
  263.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                 ^
  264.           free_impl(str, file, line);
  265.           return;

crypto/mem.c:263:30: Taking true branch
  261.   void CRYPTO_free(void *str, const char *file, int line)
  262.   {
  263.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                                      ^
  264.           free_impl(str, file, line);
  265.           return;

crypto/mem.c:264:9: Skipping __function_pointer__(): unresolved function pointer
  262.   {
  263.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  264.           free_impl(str, file, line);
                 ^
  265.           return;
  266.       }

crypto/mem.c:265:9: 
  263.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  264.           free_impl(str, file, line);
  265. >         return;
  266.       }
  267.   

crypto/mem.c:279:1: return from a call to CRYPTO_free
  277.       free(str);
  278.   #endif
  279. > }
  280.   
  281.   void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)
