ssl/ssl_ciph.c:827: error: MEMORY_LEAK
  memory dynamically allocated to `comp` by call to `malloc()` at line 820, column 19 is not reachable after line 827, column 7.
Showing all 14 steps of the trace


ssl/ssl_ciph.c:815:1: start of procedure SSL_COMP_add_compression_method()
813.   	}
814.   
815. > int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
816.   	{
817.   	SSL_COMP *comp;

ssl/ssl_ciph.c:820:2: 
818.   	STACK_OF(SSL_COMP) *sk;
819.   
820. > 	comp=(SSL_COMP *)Malloc(sizeof(SSL_COMP));
821.   	comp->id=id;
822.   	comp->method=cm;

ssl/ssl_ciph.c:821:2: 
819.   
820.   	comp=(SSL_COMP *)Malloc(sizeof(SSL_COMP));
821. > 	comp->id=id;
822.   	comp->method=cm;
823.   	if (ssl_comp_methods == NULL)

ssl/ssl_ciph.c:822:2: 
820.   	comp=(SSL_COMP *)Malloc(sizeof(SSL_COMP));
821.   	comp->id=id;
822. > 	comp->method=cm;
823.   	if (ssl_comp_methods == NULL)
824.   		sk=ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);

ssl/ssl_ciph.c:823:6: Taking true branch
821.   	comp->id=id;
822.   	comp->method=cm;
823.   	if (ssl_comp_methods == NULL)
            ^
824.   		sk=ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);
825.   	else

ssl/ssl_ciph.c:824:3: 
822.   	comp->method=cm;
823.   	if (ssl_comp_methods == NULL)
824. > 		sk=ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);
825.   	else
826.   		sk=ssl_comp_methods;

ssl/ssl_lib.c:1917:1: start of procedure sk_SSL_COMP_new()
  1915.   
  1916.   IMPLEMENT_STACK_OF(SSL_CIPHER)
  1917. > IMPLEMENT_STACK_OF(SSL_COMP)

crypto/stack/stack.c:112:1: start of procedure sk_new()
    110.   	}
    111.   
    112. > STACK *sk_new(int (*c)())
    113.   	{
    114.   	STACK *ret;

crypto/stack/stack.c:117:6: Taking true branch
    115.   	int i;
    116.   
    117.   	if ((ret=(STACK *)Malloc(sizeof(STACK))) == NULL)
                ^
    118.   		goto err0;
    119.   	if ((ret->data=(char **)Malloc(sizeof(char *)*MIN_NODES)) == NULL)

crypto/stack/stack.c:130:1: 
    128.   err1:
    129.   	Free((char *)ret);
    130. > err0:
    131.   	return(NULL);
    132.   	}

crypto/stack/stack.c:131:2: 
    129.   	Free((char *)ret);
    130.   err0:
    131. > 	return(NULL);
    132.   	}
    133.   

crypto/stack/stack.c:132:2: return from a call to sk_new
    130.   err0:
    131.   	return(NULL);
    132.   	}
            ^
    133.   
    134.   int sk_insert(STACK *st, char *data, int loc)

ssl/ssl_lib.c:1917:1: return from a call to sk_SSL_COMP_new
  1915.   
  1916.   IMPLEMENT_STACK_OF(SSL_CIPHER)
  1917. > IMPLEMENT_STACK_OF(SSL_COMP)

ssl/ssl_ciph.c:827:7: Taking true branch
825.   	else
826.   		sk=ssl_comp_methods;
827.   	if ((sk == NULL) || !sk_SSL_COMP_push(sk,comp))
             ^
828.   		{
829.   		SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD,ERR_R_MALLOC_FAILURE);
