[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 14/14] audio: fix memory leak reported by ASA
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v4 14/14] audio: fix memory leak reported by ASAN |
Date: |
Mon, 19 Aug 2019 01:25:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
Hi Zoltán,
On 8/19/19 1:06 AM, Kővágó, Zoltán wrote:
> Signed-off-by: Kővágó, Zoltán <address@hidden>
> ---
> audio/audio.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/audio/audio.c b/audio/audio.c
> index 924dddf2e7..9b28abca14 100644
> --- a/audio/audio.c
> +++ b/audio/audio.c
> @@ -1343,6 +1343,12 @@ static void free_audio_state(AudioState *s)
> qapi_free_Audiodev(s->dev);
> s->dev = NULL;
> }
> +
> + if (s->ts) {
> + timer_free(s->ts);
> + s->ts = NULL;
> + }
Why not directly fix audio_cleanup() previous to your series?
> +
> g_free(s);
> }
>
>
- [Qemu-devel] [PATCH v4 04/14] audio: add audiodev properties to frontends, (continued)
- [Qemu-devel] [PATCH v4 04/14] audio: add audiodev properties to frontends, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 07/14] paaudio: do not move stream when sink/source name is specified, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 06/14] audio: audiodev= parameters no longer optional when -audiodev present, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 08/14] paaudio: properly disconnect streams in fini_*, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 01/14] audio: reduce glob_audio_state usage, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 05/14] paaudio: prepare for multiple audiodev, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 11/14] paaudio: fix playback glitches, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 10/14] audio: do not run each backend in audio_run, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 12/14] audio: remove read and write pcm_ops, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 14/14] audio: fix memory leak reported by ASAN, Kővágó, Zoltán, 2019/08/18
- Re: [Qemu-devel] [PATCH v4 14/14] audio: fix memory leak reported by ASAN,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v4 13/14] audio: use size_t where makes sense, Kővágó, Zoltán, 2019/08/18
- [Qemu-devel] [PATCH v4 09/14] audio: remove audio_MIN, audio_MAX, Kővágó, Zoltán, 2019/08/18
- Re: [Qemu-devel] [PATCH v4 00/14] Multiple simultaneous audio backends, no-reply, 2019/08/18