Re: [Qemu-devel] [PATCH 4/4] vl.c: fix memory leak

2015-07-10 Thread Gonglei
On 2015/7/10 17:28, Leon Alrae wrote: > On 10/07/2015 01:51, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> Failing to save or free storage allocated >> by "g_strdup(cmd)" leaks it. Let's use a >> variable to storage it. >> >> Signed-off-by: Gonglei >> --- >> vl.c | 5 - >> 1 file cha

Re: [Qemu-devel] [PATCH 4/4] vl.c: fix memory leak

2015-07-10 Thread Leon Alrae
On 10/07/2015 01:51, arei.gong...@huawei.com wrote: > From: Gonglei > > Failing to save or free storage allocated > by "g_strdup(cmd)" leaks it. Let's use a > variable to storage it. > > Signed-off-by: Gonglei > --- > vl.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff -

[Qemu-devel] [PATCH 4/4] vl.c: fix memory leak

2015-07-09 Thread arei.gonglei
From: Gonglei Failing to save or free storage allocated by "g_strdup(cmd)" leaks it. Let's use a variable to storage it. Signed-off-by: Gonglei --- vl.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 3f269dc..399e816 100644 --- a/vl.c +++ b/vl.c @@ -1