mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:33:40 +00:00
[common] ivshmem: fix possible resource leak
This commit is contained in:
parent
a28deae569
commit
ec88a52fe2
@ -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 New Issue
Block a user