From 29ed29e64272787e5ee37a76f3ff68a532607c9c Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Wed, 10 Jun 2015 18:44:12 +0300 Subject: [PATCH] fix memory leak in lib/audio.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Denis-Courmont --- lib/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/audio.c b/lib/audio.c index 4e0baccc45..7901c64b38 100644 --- a/lib/audio.c +++ b/lib/audio.c @@ -86,6 +86,8 @@ libvlc_audio_output_t * item->psz_description = strdup( module_get_name( module, true ) ); if( unlikely(item->psz_name == NULL || item->psz_description == NULL) ) { + free( item->psz_name ); + free( item->psz_description ); free( item ); goto error; } -- 2.11.4.GIT