diff options
author | Jonas Maebe <jonas.maebe@elis.ugent.be> | 2013-12-02 22:34:20 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2014-08-15 22:35:11 +0200 |
commit | b9b9f853b54046db6e0af3ecd5716da30c6bfd16 (patch) | |
tree | 140d5d3eb59020a9e66b186c053a1a99a3750cea | |
parent | 865886553dfb842464600e76b6e8f127b377a1ca (diff) |
SetBlob: free rgSetBlob on error path
Signed-off-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | crypto/asn1/a_set.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/asn1/a_set.c b/crypto/asn1/a_set.c index d726c8d3a8..4d07dc043b 100644 --- a/crypto/asn1/a_set.c +++ b/crypto/asn1/a_set.c @@ -143,6 +143,7 @@ SetBlob qsort( rgSetBlob, sk_OPENSSL_BLOCK_num(a), sizeof(MYBLOB), SetBlobCmp); if (!(pTempMem = OPENSSL_malloc(totSize))) { + OPENSSL_free(rgSetBlob); ASN1err(ASN1_F_I2D_ASN1_SET,ERR_R_MALLOC_FAILURE); return(0); } |