Fix indata resource leak, CID 1536896

This commit is contained in:
olszomal 2023-03-27 09:57:17 +02:00 committed by Michał Trojnara
parent 0204d04a25
commit 4199310cdf

1
msi.c
View File

@ -380,6 +380,7 @@ static int msi_check_file(FILE_FORMAT_CTX *ctx, int detached)
indata = OPENSSL_malloc((size_t)inlen); indata = OPENSSL_malloc((size_t)inlen);
if (!msi_file_read(ctx->msi_ctx->msi, ds, 0, indata, inlen)) { if (!msi_file_read(ctx->msi_ctx->msi, ds, 0, indata, inlen)) {
printf("DigitalSignature stream data error\n\n"); printf("DigitalSignature stream data error\n\n");
OPENSSL_free(indata);
return 0; /* FAILED */ return 0; /* FAILED */
} }
if (!dse) { if (!dse) {