From f3ebde7d9fbe63fe4927c5358ad59f280dac9298 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 25 Jan 2022 03:37:37 +1100 Subject: [PATCH] [common] ivshmem: fix memory leak --- common/src/platform/windows/ivshmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/platform/windows/ivshmem.c b/common/src/platform/windows/ivshmem.c index c3ad8aff..b01dec58 100644 --- a/common/src/platform/windows/ivshmem.c +++ b/common/src/platform/windows/ivshmem.c @@ -116,6 +116,7 @@ bool ivshmemInit(struct IVSHMEM * dev) if (GetLastError() != ERROR_NO_MORE_ITEMS) { + vector_destroy(&devices); DEBUG_WINERROR("SetupDiEnumDeviceInfo failed", GetLastError()); return false; }