mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
Fix leak in virLockSpaceResourceFree
Normally a lockspace resource is not freed while there are active owners. During initial resource creation though, an OOM error will trigger this scenario. virLockSpaceResourceFree was not freeing the 'owners' field in this case. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -102,6 +102,7 @@ static void virLockSpaceResourceFree(virLockSpaceResourcePtr res)
|
||||
}
|
||||
}
|
||||
|
||||
VIR_FREE(res->owners);
|
||||
VIR_FORCE_CLOSE(res->fd);
|
||||
VIR_FREE(res->path);
|
||||
VIR_FREE(res->name);
|
||||
|
||||
Reference in New Issue
Block a user