> From: Markus Armbruster [mailto:arm...@redhat.com]
> Sent: Tuesday, September 16, 2014 11:12 PM
> To: Gonglei (Arei)
> Cc: qemu-devel@nongnu.org; kw...@redhat.com; Huangweidong (C);
> lcapitul...@redhat.com; stefa...@redhat.com
> Subject: Re: [Qemu-devel] [PATCH] hmp: fix memory leak at
> hmp_info_block_jobs()
> 
> <arei.gong...@huawei.com> writes:
> 
> > From: Gonglei <arei.gong...@huawei.com>
> >
> > Signed-off-by: Gonglei <arei.gong...@huawei.com>
> > ---
> >  hmp.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/hmp.c b/hmp.c
> > index 40a90da..31fb6a1 100644
> > --- a/hmp.c
> > +++ b/hmp.c
> > @@ -679,6 +679,8 @@ void hmp_info_block_jobs(Monitor *mon, const
> QDict *qdict)
> >          }
> >          list = list->next;
> >      }
> > +
> > +    qapi_free_BlockJobInfoList(list);
> >  }
> >
> >  void hmp_info_tpm(Monitor *mon, const QDict *qdict)
> 
> Reviewed-by: Markus Armbruster <arm...@redhat.com>

Thanks for review. :)

Best regards,
-Gonglei

Reply via email to