mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-09-07 07:41:20 +00:00
[common] ivshmem: fix memory leak
This commit is contained in:
@@ -116,6 +116,7 @@ bool ivshmemInit(struct IVSHMEM * dev)
|
|||||||
|
|
||||||
if (GetLastError() != ERROR_NO_MORE_ITEMS)
|
if (GetLastError() != ERROR_NO_MORE_ITEMS)
|
||||||
{
|
{
|
||||||
|
vector_destroy(&devices);
|
||||||
DEBUG_WINERROR("SetupDiEnumDeviceInfo failed", GetLastError());
|
DEBUG_WINERROR("SetupDiEnumDeviceInfo failed", GetLastError());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user