summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-05-04 02:38:44 +0400
committerGerd Hoffmann <kraxel@redhat.com>2017-05-04 09:15:45 +0200
commit7bdfd907e7072e380f325e735d99677df53f00ec (patch)
treeca75d1fb4a7c2e73c4716dd7613c59cc414b647f /audio
parent3268a845f41253fb55852a8429c32b50f36f349a (diff)
audio: fix WAVState leak
Spotted by ASAN. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20170503223846.6559-4-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/wavcapture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c
index 8bfb9e7654..5863803584 100644
--- a/audio/wavcapture.c
+++ b/audio/wavcapture.c
@@ -88,6 +88,7 @@ static void wav_capture_destroy (void *opaque)
WAVState *wav = opaque;
AUD_del_capture (wav->cap, wav);
+ g_free (wav);
}
static void wav_capture_info (void *opaque)