mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
Fix resource leak, CID 1576007
This commit is contained in:
parent
f22c83514c
commit
f3ac2c0c6f
1
msi.c
1
msi.c
@ -830,6 +830,7 @@ static PKCS7 *msi_pkcs7_get_digital_signature(FILE_FORMAT_CTX *ctx, MSI_ENTRY *d
|
||||
p = OPENSSL_malloc((size_t)len);
|
||||
if (!msi_file_read(ctx->msi_ctx->msi, ds, 0, p, len)) {
|
||||
printf("DigitalSignature stream data error\n");
|
||||
OPENSSL_free(p);
|
||||
return NULL;
|
||||
}
|
||||
blob = (u_char *)p;
|
||||
|
Loading…
x
Reference in New Issue
Block a user