From: Marc-André Lureau Date: Wed, 3 May 2017 22:38:44 +0000 (+0400) Subject: audio: fix WAVState leak X-Git-Tag: v2.10.0-rc0~214^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bdfd907e7072e380f325e735d99677df53f00ec;p=thirdparty%2Fqemu.git audio: fix WAVState leak Spotted by ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Message-id: 20170503223846.6559-4-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann --- diff --git a/audio/wavcapture.c b/audio/wavcapture.c index 8bfb9e76546..5863803584b 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)