]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
audio: fix WAVState leak
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 3 May 2017 22:38:44 +0000 (02:38 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 May 2017 07:15:45 +0000 (09:15 +0200)
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>
audio/wavcapture.c

index 8bfb9e765468936137a12e844ce578846f8b393d..5863803584baa2bc02d3b51331e9d47ade480866 100644 (file)
@@ -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)