From 4199310cdfa375f28ab66a22c92638c33aa092d5 Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 27 Mar 2023 09:57:17 +0200 Subject: [PATCH] Fix indata resource leak, CID 1536896 --- msi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msi.c b/msi.c index 3997c7d..c8208c0 100644 --- a/msi.c +++ b/msi.c @@ -380,6 +380,7 @@ static int msi_check_file(FILE_FORMAT_CTX *ctx, int detached) indata = OPENSSL_malloc((size_t)inlen); if (!msi_file_read(ctx->msi_ctx->msi, ds, 0, indata, inlen)) { printf("DigitalSignature stream data error\n\n"); + OPENSSL_free(indata); return 0; /* FAILED */ } if (!dse) {