mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-09 05:01:28 +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_DEBUG("Lockspace %s has been registered", path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VIR_FREE(path);
|
||||||
|
VIR_FREE(dir);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error_unlink:
|
error_unlink:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user