Fix leak
This commit is contained in:
parent
aa6d1a0c19
commit
539d4c1030
@ -878,7 +878,10 @@ static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
|
|||||||
* for UNIVERSAL class and ignore the tag.
|
* for UNIVERSAL class and ignore the tag.
|
||||||
*/
|
*/
|
||||||
if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL))
|
if (!asn1_collect(&buf, &p, plen, inf, -1, V_ASN1_UNIVERSAL))
|
||||||
|
{
|
||||||
|
free_cont = 1;
|
||||||
goto err;
|
goto err;
|
||||||
|
}
|
||||||
len = buf.length;
|
len = buf.length;
|
||||||
/* Append a final null to string */
|
/* Append a final null to string */
|
||||||
if (!BUF_MEM_grow_clean(&buf, len + 1))
|
if (!BUF_MEM_grow_clean(&buf, len + 1))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user