mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +00: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…
Reference in New Issue
Block a user