[libvirt] [PATCH] Don't leak memory if a cgroup is mounted multiple times
Eric Blake
eblake at redhat.com
Wed Aug 31 15:57:03 UTC 2011
On 08/31/2011 09:47 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange"<berrange at redhat.com>
>
> It is possible (expected/likely in Fedora 15) for a cgroup controller
> to be mounted in multiple locations at the same time, due to bind
> mounts. Currently we leak memory if this happens, because we overwrite
> the previous 'mountPoint' string. Instead just accept the first match
> we find.
>
> * src/util/cgroup.c: Only accept first match for a cgroup
> controller mount
> ---
> src/util/cgroup.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list