From ec88a52fe2d82df407cb72e9349a6972a3580118 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 14:04:54 +1100 Subject: [PATCH] [common] ivshmem: fix possible resource leak --- common/src/platform/linux/ivshmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/platform/linux/ivshmem.c b/common/src/platform/linux/ivshmem.c index f86d93eb..9184d860 100644 --- a/common/src/platform/linux/ivshmem.c +++ b/common/src/platform/linux/ivshmem.c @@ -175,6 +175,7 @@ bool ivshmemOpenDev(struct IVSHMEM * dev, const char * shmDevice) { DEBUG_ERROR("Failed to map the shared memory device: %s", shmDevice); DEBUG_ERROR("%s", strerror(errno)); + close(devFd); return false; }