mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[common] ivshmem: fix possible resource leak
This commit is contained in:
parent
a28deae569
commit
ec88a52fe2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue