[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 14/14] audio: fix memory leak reported by ASAN
From: |
Kővágó, Zoltán |
Subject: |
[Qemu-devel] [PATCH v3 14/14] audio: fix memory leak reported by ASAN |
Date: |
Sun, 4 Aug 2019 19:04:26 +0200 |
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 d3c639211d..ebe49f3ca1 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;
+ }
+
g_free(s);
}
--
2.22.0
- [Qemu-devel] [PATCH v3 00/14] Multiple simultaneous audio backends, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 03/14] audio: add audiodev property to vnc and wav_capture, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 02/14] audio: basic support for multi backend audio, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 11/14] paaudio: fix playback glitches, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 06/14] audio: audiodev= parameters no longer optional when -audiodev present, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 12/14] audio: remove read and write pcm_ops, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 08/14] paaudio: properly disconnect streams in fini_*, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 07/14] paaudio: do not move stream when sink/source name is specified, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 09/14] audio: remove audio_MIN, audio_MAX, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 14/14] audio: fix memory leak reported by ASAN,
Kővágó, Zoltán <=
- [Qemu-devel] [PATCH v3 10/14] audio: do not run each backend in audio_run, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 05/14] paaudio: prepare for multiple audiodev, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 01/14] audio: reduce glob_audio_state usage, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 04/14] audio: add audiodev properties to frontends, Kővágó, Zoltán, 2019/08/04
- [Qemu-devel] [PATCH v3 13/14] audio: use size_t where makes sense, Kővágó, Zoltán, 2019/08/04
- Re: [Qemu-devel] [PATCH v3 00/14] Multiple simultaneous audio backends, no-reply, 2019/08/04
- Re: [Qemu-devel] [PATCH v3 00/14] Multiple simultaneous audio backends, Gerd Hoffmann, 2019/08/13