[libvirt] [PATCH] leaseshelper: avoid mem leak after storing lease entries
Eric Blake
eblake at redhat.com
Thu Jul 24 01:28:08 UTC 2014
On 07/23/2014 04:05 PM, Nehal J Wani wrote:
> Contents of existing lease file were being stored in a variable
> which was never freed.
>
> ---
> src/network/leaseshelper.c | 1 +
> 1 file changed, 1 insertion(+)
ACK and pushed.
>
> diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
> index e4b5283..c8543a2 100644
> --- a/src/network/leaseshelper.c
> +++ b/src/network/leaseshelper.c
> @@ -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);
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140723/a855f46f/attachment-0001.sig>
More information about the libvir-list
mailing list