Skip to content

Commit

Permalink
Fix resource leak, CID 1576007
Browse files Browse the repository at this point in the history
  • Loading branch information
olszomal authored and mtrojnar committed Jan 24, 2024
1 parent f22c835 commit f3ac2c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3ac2c0

Please sign in to comment.