crypto/pkcs12/p12_sbag.c:154: error: MEMORY_LEAK
  memory dynamically allocated to `return` by call to `malloc()` at line 151, column 2 is not reachable after line 154, column 2.
Showing all 12 steps of the trace


crypto/pkcs12/p12_sbag.c:147:1: start of procedure PKCS12_SAFEBAG_new()
145.   }
146.   
147. > PKCS12_SAFEBAG *PKCS12_SAFEBAG_new(void)
148.   {
149.   	PKCS12_SAFEBAG *ret=NULL;

crypto/pkcs12/p12_sbag.c:149:2: 
147.   PKCS12_SAFEBAG *PKCS12_SAFEBAG_new(void)
148.   {
149. > 	PKCS12_SAFEBAG *ret=NULL;
150.   	ASN1_CTX c;
151.   	M_ASN1_New_Malloc(ret, PKCS12_SAFEBAG);

crypto/pkcs12/p12_sbag.c:151:2: Taking false branch
149.   	PKCS12_SAFEBAG *ret=NULL;
150.   	ASN1_CTX c;
151.   	M_ASN1_New_Malloc(ret, PKCS12_SAFEBAG);
        ^
152.   	ret->type=NULL;
153.   	ret->value.other=NULL;

crypto/pkcs12/p12_sbag.c:152:2: 
150.   	ASN1_CTX c;
151.   	M_ASN1_New_Malloc(ret, PKCS12_SAFEBAG);
152. > 	ret->type=NULL;
153.   	ret->value.other=NULL;
154.   	M_ASN1_New(ret->attrib, sk_new_null);

crypto/pkcs12/p12_sbag.c:153:2: 
151.   	M_ASN1_New_Malloc(ret, PKCS12_SAFEBAG);
152.   	ret->type=NULL;
153. > 	ret->value.other=NULL;
154.   	M_ASN1_New(ret->attrib, sk_new_null);
155.   	ret->rest=NULL;

crypto/pkcs12/p12_sbag.c:154:2: 
152.   	ret->type=NULL;
153.   	ret->value.other=NULL;
154. > 	M_ASN1_New(ret->attrib, sk_new_null);
155.   	ret->rest=NULL;
156.   	return (ret);

crypto/stack/stack.c:117:1: start of procedure sk_new()
  115.   	}
  116.   
  117. > STACK *sk_new(int (*c)())
  118.   	{
  119.   	STACK *ret;

crypto/stack/stack.c:122:6: Taking true branch
  120.   	int i;
  121.   
  122.   	if ((ret=(STACK *)Malloc(sizeof(STACK))) == NULL)
              ^
  123.   		goto err0;
  124.   	if ((ret->data=(char **)Malloc(sizeof(char *)*MIN_NODES)) == NULL)

crypto/stack/stack.c:135:1: 
  133.   err1:
  134.   	Free((char *)ret);
  135. > err0:
  136.   	return(NULL);
  137.   	}

crypto/stack/stack.c:136:2: 
  134.   	Free((char *)ret);
  135.   err0:
  136. > 	return(NULL);
  137.   	}
  138.   

crypto/stack/stack.c:137:2: return from a call to sk_new
  135.   err0:
  136.   	return(NULL);
  137.   	}
          ^
  138.   
  139.   int sk_insert(STACK *st, char *data, int loc)

crypto/pkcs12/p12_sbag.c:154:2: Taking true branch
152.   	ret->type=NULL;
153.   	ret->value.other=NULL;
154.   	M_ASN1_New(ret->attrib, sk_new_null);
        ^
155.   	ret->rest=NULL;
156.   	return (ret);
