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


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

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

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

crypto/mem.c:189:1: start of procedure CRYPTO_malloc()
  187.   #endif
  188.   
  189. > void *CRYPTO_malloc(size_t num, const char *file, int line)
  190.   {
  191.       void *ret = NULL;

crypto/mem.c:191:5: 
  189.   void *CRYPTO_malloc(size_t num, const char *file, int line)
  190.   {
  191. >     void *ret = NULL;
  192.   
  193.       INCREMENT(malloc_count);

crypto/mem.c:194:9: Taking false branch
  192.   
  193.       INCREMENT(malloc_count);
  194.       if (malloc_impl != NULL && malloc_impl != CRYPTO_malloc)
                 ^
  195.           return malloc_impl(num, file, line);
  196.   

crypto/mem.c:197:9: Taking false branch
  195.           return malloc_impl(num, file, line);
  196.   
  197.       if (num == 0)
                 ^
  198.           return NULL;
  199.   

crypto/mem.c:201:5: 
  199.   
  200.       FAILTEST();
  201. >     allow_customize = 0;
  202.   #ifndef OPENSSL_NO_CRYPTO_MDEBUG
  203.       if (call_malloc_debug) {

crypto/mem.c:211:5: 
  209.       }
  210.   #else
  211. >     (void)(file); (void)(line);
  212.       ret = malloc(num);
  213.   #endif

crypto/mem.c:211:19: 
  209.       }
  210.   #else
  211. >     (void)(file); (void)(line);
  212.       ret = malloc(num);
  213.   #endif

crypto/mem.c:212:5: 
  210.   #else
  211.       (void)(file); (void)(line);
  212. >     ret = malloc(num);
  213.   #endif
  214.   

crypto/mem.c:215:5: 
  213.   #endif
  214.   
  215. >     return ret;
  216.   }
  217.   

crypto/mem.c:216:1: return from a call to CRYPTO_malloc
  214.   
  215.       return ret;
  216. > }
  217.   
  218.   void *CRYPTO_zalloc(size_t num, const char *file, int line)

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

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

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

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

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

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

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

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

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

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

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

crypto/mem.c:228:1: start of procedure CRYPTO_realloc()
  226.   }
  227.   
  228. > void *CRYPTO_realloc(void *str, size_t num, const char *file, int line)
  229.   {
  230.       INCREMENT(realloc_count);

crypto/mem.c:231:9: Taking true branch
  229.   {
  230.       INCREMENT(realloc_count);
  231.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                 ^
  232.           return realloc_impl(str, num, file, line);
  233.   

crypto/mem.c:231:33: Taking true branch
  229.   {
  230.       INCREMENT(realloc_count);
  231.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
                                         ^
  232.           return realloc_impl(str, num, file, line);
  233.   

crypto/mem.c:232:9: Skipping __function_pointer__(): unresolved function pointer
  230.       INCREMENT(realloc_count);
  231.       if (realloc_impl != NULL && realloc_impl != &CRYPTO_realloc)
  232.           return realloc_impl(str, num, file, line);
                 ^
  233.   
  234.       FAILTEST();

crypto/mem.c:257:1: return from a call to CRYPTO_realloc
  255.       return realloc(str, num);
  256.   
  257. > }
  258.   
  259.   void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,

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

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

crypto/mem.c:286:1: start of procedure CRYPTO_free()
  284.   }
  285.   
  286. > void CRYPTO_free(void *str, const char *file, int line)
  287.   {
  288.       INCREMENT(free_count);

crypto/mem.c:289:9: Taking true branch
  287.   {
  288.       INCREMENT(free_count);
  289.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                 ^
  290.           free_impl(str, file, line);
  291.           return;

crypto/mem.c:289:30: Taking true branch
  287.   {
  288.       INCREMENT(free_count);
  289.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
                                      ^
  290.           free_impl(str, file, line);
  291.           return;

crypto/mem.c:290:9: Skipping __function_pointer__(): unresolved function pointer
  288.       INCREMENT(free_count);
  289.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  290.           free_impl(str, file, line);
                 ^
  291.           return;
  292.       }

crypto/mem.c:291:9: 
  289.       if (free_impl != NULL && free_impl != &CRYPTO_free) {
  290.           free_impl(str, file, line);
  291. >         return;
  292.       }
  293.   

crypto/mem.c:305:1: return from a call to CRYPTO_free
  303.       free(str);
  304.   #endif
  305. > }
  306.   
  307.   void CRYPTO_clear_free(void *str, size_t num, const char *file, int line)
