From 85594d9fb2e6ebc9a525e99e181f93c17f22df3d Mon Sep 17 00:00:00 2001 From: olszomal Date: Fri, 25 Feb 2022 10:18:45 +0100 Subject: [PATCH] fix memory leak --- msi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msi.c b/msi.c index 3c75313..9fc6097 100644 --- a/msi.c +++ b/msi.c @@ -466,6 +466,7 @@ int msi_dirent_new(MSI_FILE *msi, MSI_ENTRY *entry, MSI_DIRENT *parent, MSI_DIRE || (entry->rightSiblingID != NOSTREAM && tortoise->entry->rightSiblingID == entry->rightSiblingID) || (entry->childID != NOSTREAM && tortoise->entry->childID == entry->childID)) { printf("MSI_ENTRY cycle detected at level %d\n", cnt); + OPENSSL_free(entry); return 0; /* FAILED */ } }