From: Jonas Maebe Date: Mon, 2 Dec 2013 21:34:20 +0000 (+0100) Subject: SetBlob: free rgSetBlob on error path X-Git-Tag: master-post-reformat~511 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9b9f853b54046db6e0af3ecd5716da30c6bfd16;p=oweals%2Fopenssl.git SetBlob: free rgSetBlob on error path Signed-off-by: Kurt Roeckx Reviewed-by: Rich Salz --- 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); }