[vlc-commits] fix memory leak in lib/audio.c
Zhao Zhili
git at videolan.org
Wed Jun 10 17:44:50 CEST 2015
vlc | branch: master | Zhao Zhili <wantlamy at gmail.com> | Wed Jun 10 18:44:12 2015 +0300| [29ed29e64272787e5ee37a76f3ff68a532607c9c] | committer: Rémi Denis-Courmont
fix memory leak in lib/audio.c
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=29ed29e64272787e5ee37a76f3ff68a532607c9c
---
lib/audio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/audio.c b/lib/audio.c
index 4e0bacc..7901c64 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;
}
More information about the vlc-commits
mailing list