mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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(pid_file);
|
||||||
VIR_FREE(exptime);
|
VIR_FREE(exptime);
|
||||||
|
VIR_FREE(lease_entries);
|
||||||
VIR_FREE(custom_lease_file);
|
VIR_FREE(custom_lease_file);
|
||||||
virJSONValueFree(lease_new);
|
virJSONValueFree(lease_new);
|
||||||
virJSONValueFree(leases_array);
|
virJSONValueFree(leases_array);
|
||||||
|
Loading…
Reference in New Issue
Block a user