Commit b0cb22b0 authored by Matt Caswell's avatar Matt Caswell
Browse files

Free buffer on error in a2i_ASN1_INTEGER()



The function a2i_ASN1_INTEGER() allocates a buffer |s| but then fails
to free it on error paths.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 6e4ab54b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -148,6 +148,7 @@ int a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size)
    return 1;
 err:
    ASN1err(ASN1_F_A2I_ASN1_INTEGER, ASN1_R_SHORT_LINE);
    OPENSSL_free(s);
    return 0;
}