[common] ivshmem: fix memory leak

This commit is contained in:
Geoffrey McRae 2022-01-25 03:37:37 +11:00
parent 905c1d7f58
commit f3ebde7d9f

View File

@ -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;
} }