Re: [Qemu-devel] [PATCH v2] ossaudio: fix memory leak

2015-06-24 Thread Markus Armbruster
writes: > From: Gonglei > > Variable "conf" going out of scope leaks the storage > it points to in line 856. > > Signed-off-by: Gonglei > --- > v2: > using an better way to avoid memory leak. (Markus) > --- > audio/ossaudio.c | 9 +++-- > 1 file changed, 3 insertions(+), 6 deletions(-) >

Re: [Qemu-devel] [PATCH v2] ossaudio: fix memory leak

2015-06-24 Thread Gerd Hoffmann
On Mi, 2015-06-24 at 17:18 +0800, arei.gong...@huawei.com wrote: > Variable "conf" going out of scope leaks the storage > it points to in line 856. > Added to audio queue. thanks, Gerd

[Qemu-devel] [PATCH v2] ossaudio: fix memory leak

2015-06-24 Thread arei.gonglei
From: Gonglei Variable "conf" going out of scope leaks the storage it points to in line 856. Signed-off-by: Gonglei --- v2: using an better way to avoid memory leak. (Markus) --- audio/ossaudio.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/audio/ossaudio.c b/