mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
leaseshelper: avoid mem leak after storing lease entries
Contents of existing lease file were being stored in a variable which was never freed.
This commit is contained in:
parent
e1f7914d3e
commit
6675a0ab65
@ -361,6 +361,7 @@ main(int argc, char **argv)
|
||||
|
||||
VIR_FREE(pid_file);
|
||||
VIR_FREE(exptime);
|
||||
VIR_FREE(lease_entries);
|
||||
VIR_FREE(custom_lease_file);
|
||||
virJSONValueFree(lease_new);
|
||||
virJSONValueFree(leases_array);
|
||||
|
Loading…
x
Reference in New Issue
Block a user