1 From 74f9fd9420fadd64a42ee8de780dc6de61864ea8 Mon Sep 17 00:00:00 2001
2 From: Gerd Hoffmann <kraxel@redhat.com>
3 Date: Fri, 28 Apr 2017 09:56:12 +0200
4 Subject: [PATCH 12/23] audio: release capture buffers
6 AUD_add_capture() allocates two buffers which are never released.
7 Add the missing calls to AUD_del_capture().
9 Impact: Allows vnc clients to exhaust host memory by repeatedly
10 starting and stopping audio capture.
13 Cc: P J P <ppandit@redhat.com>
14 Cc: Huawei PSIRT <PSIRT@huawei.com>
15 Reported-by: "Jiangxin (hunter, SCC)" <jiangxin1@huawei.com>
16 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
17 Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org>
18 Message-id: 20170428075612.9997-1-kraxel@redhat.com
21 1 file changed, 2 insertions(+)
23 diff --git a/audio/audio.c b/audio/audio.c
24 index c8898d8422..beafed209b 100644
27 @@ -2028,6 +2028,8 @@ void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque)
30 QLIST_REMOVE (cap, entries);
31 + g_free (cap->hw.mix_buf);