Re: [Qemu-devel] [PATCH 6/9] acl: fix memory leak

2014-11-17 Thread Paolo Bonzini
On 15/11/2014 11:06, arei.gong...@huawei.com wrote: > From: Gonglei > > If 'i != index' for all acl->entries, variable > entry leaks the storage it points to. > > Signed-off-by: Gonglei > --- > util/acl.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/ut

[Qemu-devel] [PATCH 6/9] acl: fix memory leak

2014-11-15 Thread arei.gonglei
From: Gonglei If 'i != index' for all acl->entries, variable entry leaks the storage it points to. Signed-off-by: Gonglei --- util/acl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util/acl.c b/util/acl.c index 938b7ae..571d686 100644 --- a/util/acl.c +++ b/u