mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
locking: Resolve resource leaks on non error path
Both 'dir' and 'path' were not free'd on successful return
This commit is contained in:
@@ -365,6 +365,8 @@ retry:
|
||||
VIR_DEBUG("Lockspace %s has been registered", path);
|
||||
}
|
||||
|
||||
VIR_FREE(path);
|
||||
VIR_FREE(dir);
|
||||
return 0;
|
||||
|
||||
error_unlink:
|
||||
|
||||
Reference in New Issue
Block a user