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:
Nehal J Wani 2014-07-24 03:35:13 +05:30 committed by Eric Blake
parent e1f7914d3e
commit 6675a0ab65

View File

@ -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);