mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-17 06:03:52 +03: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:
parent
65aa3e3414
commit
687554cd50
@ -365,6 +365,8 @@ retry:
|
||||
VIR_DEBUG("Lockspace %s has been registered", path);
|
||||
}
|
||||
|
||||
VIR_FREE(path);
|
||||
VIR_FREE(dir);
|
||||
return 0;
|
||||
|
||||
error_unlink:
|
||||
|
Loading…
x
Reference in New Issue
Block a user